首页 > 其他 > 详细

table

时间:2020-05-15 19:06:28      阅读:57      评论:0      收藏:0      [点我收藏+]

 

 

 

 

create table order_ipad(
id bigint(20) unsigned not null auto_increment,comment ‘自增主键‘,
uuid bigint(20) unsigned not null default ‘0‘ comment ‘用户id‘,
order_id varchar(64) not null default ‘‘ comment ‘订单id‘,
name varchar(64) not null default ‘‘ comment ‘商品名称‘,
type tinyint(4) unsigned not null default ‘0‘ comment ‘状态 1:增加 2:减少‘,
price int(11) unsigned not null default ‘0‘ comment ‘钱‘,
title varchar(64) not null default ‘‘ comment ‘标题‘,
status tinyint(4) unsigned not null default ‘0‘ comment ‘状态 1:进行中 2:已完成 3:已退款 4:已失败 99:异常‘,
source tinyint(4) unsigned not null default ‘0‘ comment ‘来源 1:任务系统 2:金币系统 3:活动系统‘,
end_time bigint(20) unsigned not null default ‘0‘ comment ‘过期时间‘,
record_time bigint(20) unsigned not null default ‘0‘ comment ‘记录发生时间‘,
create_time bigint(20) unsigned not null default ‘0‘ comment ‘创建时间‘,
refund_time bigint(20) unsigned not null default ‘0‘ comment ‘退款时间‘,
update_time timestamp not null default current_timestamp on update current_timestamp comment ‘更新时间‘,
primary key (id),
unique key uk_orderid (order_id) ,
key idx_uuid_name (uuid,name(10)),
key idx_uuid_title (uuid,record_title)
)engine=innodb auto_increment=1 default charset=utf8mb4 comment=‘用户小游戏金币收支记录表‘;  

 

table

原文:https://www.cnblogs.com/igoodful/p/12896037.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!