shiyueyangne

1.数据库设计

2.订单详情表 创建

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * 订单详情表
 */
create table `order_detail` (
  `detail_id` varchar(32) not null,
  `order_id` varchar(32) not null,
  `product_id` varchar(32) not null,
  `product_name` varchar(64) not null comment \'商品名称\',
  `product_price` decimal(8,2) not null comment \'商品价格\',
  `product_quantity` int not null comment \'商品数量\',
  `product_icon` varchar(512) comment \'商品小图\',
  `create_time` timestamp not null default current_timestamp comment \'创建时间\',
  `update_time` timestamp not null default current_timestamp on update current_timestamp comment \'修改时间\',
  primary key (`detail_id`),
  key `idx_order_id` (`order_id`)
) comment \'订单详情表\';

.

分类:

技术点:

相关文章:

  • 2022-01-06
  • 2021-11-09
  • 2021-06-09
  • 2021-11-17
  • 2022-01-02
  • 2022-12-23
  • 2021-11-28
  • 2021-04-14
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2021-09-13
  • 2021-09-20
相关资源
相似解决方案