zoukankan      html  css  js  c++  java
  • sell 项目 订单详情表 设计 及 创建

    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 '订单详情表';

    原文地址:https://www.cnblogs.com/crazycode2/p/10386199.html

  • 相关阅读:
    4月21日Java作业
    5.14 Java作业
    第十周java作业
    4月30号作业
    第七周上机
    4.9Java
    通宵看剧有感
    error: pathspec 'xxxxxxxxx' did not match any file(s) known to git
    markdown格式测试
    博客申请通过啦
  • 原文地址:https://www.cnblogs.com/jpfss/p/11164809.html
Copyright © 2011-2022 走看看