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

    1.数据库设计

    2.订单表 创建

    /**
     * 订单表
     */
    create table `order_master` (
      `order_id` varchar(32) not null,
      `buyer_name` varchar(32) not null comment '买家名字',
      `buyer_phone` varchar(32) not null comment '买家电话',
      `buyer_address` varchar(128) not null comment '买家地址',
      `buyer_openid` varchar(64) not null comment '买家微信openid',
      `order_amount` decimal(8,2) not null comment '订单总金额',
      `order_status` tinyint(3) not null default '0' comment '订单状态,默认0新下单',
      `pay_status` tinyint(3) not null default '0' comment '支付状态,默认0未支付',
      `create_time` timestamp not null default current_timestamp comment '创建时间',
      `update_time` timestamp not null default current_timestamp on update current_timestamp comment '修改时间',
      primary key (`order_id`),
      key `idx_buyer_openid` (`buyer_openid`)
    ) comment '订单表';

    .

  • 相关阅读:
    学生管理系统
    python集合(方法)
    python字典(包括方法)
    python元组(包括方法)
    python列表(包含列表方法)
    python索引
    python三元运算
    python while循环
    python-if语句
    python数据类型和运算符
  • 原文地址:https://www.cnblogs.com/crazycode2/p/10381331.html
Copyright © 2011-2022 走看看