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

    .

  • 相关阅读:
    Java API学习
    Java接口类学习笔记
    TCP/IP协议族
    Web服务器
    Redis笔记
    Python知识总汇
    GIL锁
    day8
    day7
    day6
  • 原文地址:https://www.cnblogs.com/shiyueyangne/p/14215313.html
Copyright © 2011-2022 走看看