记得上下班打卡 | git大法好,push需谨慎

Commit e13ab1b6 authored by 胡佳晨's avatar 胡佳晨

新增sql文件

parent 62e25376
......@@ -20,14 +20,14 @@ create table stone_score_items
img varchar(64) default '' comment '展示图',
score decimal(8, 2) default 0 comment '所需积分',
price decimal(8, 2) default 0 comment '所需金额',
general_total int default 0 comment '总库存[-1-不限]',
general_total int default 0 comment '总库存[-999-不限]',
general_surplus int default 0 comment '剩余库存',
limit_count int default 0 comment '限购数量[0-不限]',
details longtext default NULL comment '商品详情',
notice longtext default NULL comment '注意事项',
status int default 0 comment '状态[-1-删除|0-未上架|1-已上架|2-定时上架]',
start_time datetime NULLABLE COMMENT '定时上架-起始时间',
end_time datetime NULLABLE COMMENT '定时上架-终止时间',
start_time datetime NULLABLE COMMENT '定时上架-时间',
end_time datetime NULLABLE COMMENT '定时下架-时间',
created_at datetime ,
updated_at datetime ,
comment text
......@@ -38,8 +38,7 @@ create table stone_score_user
(
mid bigint unsigned auto_increment primary key,
uid varchar(64) default '' comment '用户id',
score_surplus decimal(8, 2) default 0 comment '可用积分',
score_used decimal(8, 2) default 0 comment '医用积分',
status int default 1 comment '状态[0-冻结|1-正常]',
created_at datetime ,
updated_at datetime ,
comment text
......@@ -50,9 +49,23 @@ create table stone_score_order
(
mid bigint unsigned auto_increment primary key,
uid varchar(64) default '' comment '用户id',
score_surplus decimal(8, 2) default 0 comment '可用积分',
score_used decimal(8, 2) default 0 comment '已用积分',
user_name varchar(255) NOT NULL DEFAULT '' COMMENT '用户昵称',
user_mobile varchar(255) NOT NULL DEFAULT '' COMMENT '用户手机号',
target_title varchar(255) NOT NULL DEFAULT '' COMMENT '物品名称',
order_code varchar(255) NOT NULL DEFAULT '' COMMENT '订单号',
number int(32) NOT NULL DEFAULT 0 COMMENT '数量',
price decimal(8, 2) NOT NULL DEFAULT '0.00' COMMENT '单价',
score decimal(8, 2) NOT NULL DEFAULT '0.00' COMMENT '积分',
price_express decimal(8, 2) NOT NULL DEFAULT '0.00' COMMENT '快递价格',
price_actual decimal(8, 2) NOT NULL DEFAULT '0.00' COMMENT '实付价格',
pay_type varchar(255) NOT NULL DEFAULT '' COMMENT '选择支付方式[SCORE-积分]',
payment_type varchar(255) NULL DEFAULT '' COMMENT '实际支付方式[SCORE-积分]',
payment_id varchar(255) NULL DEFAULT '' COMMENT '支付的订单号',
time_pay varchar(255) NULL DEFAULT '' COMMENT '支付时间',
pay_countdown_minute int(32) NOT NULL DEFAULT 15 COMMENT '订单过期时间(分钟)',
status tinyint NOT NULL DEFAULT 0 COMMENT '订单状态[0-待付款|1-已付款|2-已关闭|3-正在退款|4-已退款|5-待关闭|6-部分退款]',
pay_status tinyint NOT NULL DEFAULT 0 COMMENT '支付状态[0-未支付|1-已支付|2-支付失败]',
created_at datetime ,
updated_at datetime ,
comment text
) engine = InnoDB comment '积分用户表';
\ No newline at end of file
) engine = InnoDB comment '积分订单表';
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment