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

Commit fd1b8fe1 authored by 张国柄's avatar 张国柄

fix:mysql.datetime(3);

parent 1243fa9d
...@@ -58,9 +58,9 @@ create table adam_user ...@@ -58,9 +58,9 @@ create table adam_user
passwd varchar(64), passwd varchar(64),
pay_code varchar(64), pay_code varchar(64),
state tinyint comment '1-NORMAL,2-INVALID', state tinyint comment '1-NORMAL,2-INVALID',
created_at datetime not null, created_at datetime(3) not null,
updated_at datetime, updated_at datetime(3),
closed_at datetime, closed_at datetime(3),
comment text comment text
) ENGINE = InnoDB comment '用户'; ) ENGINE = InnoDB comment '用户';
...@@ -96,8 +96,8 @@ create table adam_real_name ...@@ -96,8 +96,8 @@ create table adam_real_name
name varchar(30) not null comment '真实姓名', name varchar(30) not null comment '真实姓名',
id_card varchar(50) not null comment '证件号码', id_card varchar(50) not null comment '证件号码',
state tinyint not null comment '0-INIT,1-NORMAL,2-INVALID', state tinyint not null comment '0-INIT,1-NORMAL,2-INVALID',
created_at datetime not null, created_at datetime(3) not null,
updated_at datetime, updated_at datetime(3),
comment text comment text
) engine = InnoDB comment '实名信息'; ) engine = InnoDB comment '实名信息';
...@@ -117,9 +117,9 @@ create table adam_enters ...@@ -117,9 +117,9 @@ create table adam_enters
is_default boolean not null default false comment '是否为默认:0-否,1-是,第一个入默认1', is_default boolean not null default false comment '是否为默认:0-否,1-是,第一个入默认1',
# is_certification enum ('yes','no') not null default 'no' comment '入场人的身份证号是否认证', # is_certification enum ('yes','no') not null default 'no' comment '入场人的身份证号是否认证',
state tinyint not null comment '状态:0-INIT,1-NORMAL,2-INVALID', state tinyint not null comment '状态:0-INIT,1-NORMAL,2-INVALID',
created_at datetime not null, created_at datetime(3) not null,
updated_at datetime, updated_at datetime(3),
deleted_at datetime, deleted_at datetime(3),
comment text comment text
) engine = InnoDB comment ='入场人'; ) engine = InnoDB comment ='入场人';
...@@ -141,9 +141,9 @@ create table adam_addresses ...@@ -141,9 +141,9 @@ create table adam_addresses
is_default boolean not null default false comment '是否为默认:0-否,1-是,第一个默认1', is_default boolean not null default false comment '是否为默认:0-否,1-是,第一个默认1',
# is_certification enum ('yes','no') not null default 'no' comment '入场人的身份证号是否认证', # is_certification enum ('yes','no') not null default 'no' comment '入场人的身份证号是否认证',
state tinyint not null comment '状态:0-INIT,1-NORMAL,2-INVALID', state tinyint not null comment '状态:0-INIT,1-NORMAL,2-INVALID',
created_at datetime not null, created_at datetime(3) not null,
updated_at datetime, updated_at datetime(3),
deleted_at datetime, deleted_at datetime(3),
comment text comment text
) engine = InnoDB comment '收货地址'; ) engine = InnoDB comment '收货地址';
...@@ -165,9 +165,9 @@ create index idx_addresses_uid on adam_addresses (uid); ...@@ -165,9 +165,9 @@ create index idx_addresses_uid on adam_addresses (uid);
# mobile varchar(50) not null comment '手机号', # mobile varchar(50) not null comment '手机号',
# admin_id int default 0 not null comment '处理人', # admin_id int default 0 not null comment '处理人',
# admin_name varchar(255) default '' not null comment '处理人姓名', # admin_name varchar(255) default '' not null comment '处理人姓名',
# admin_time datetime null comment '处理时间', # admin_time datetime(3) null comment '处理时间',
# created_at datetime not null, # created_at datetime(3) not null,
# updated_at datetime # updated_at datetime(3)
# ) engine = InnoDB comment '反馈'; # ) engine = InnoDB comment '反馈';
-- >>------------------------------------------------------------------------------------ -- >>------------------------------------------------------------------------------------
drop table if exists adam_collection; drop table if exists adam_collection;
...@@ -178,8 +178,8 @@ create table adam_collection ...@@ -178,8 +178,8 @@ create table adam_collection
content_id varchar(64) not null, content_id varchar(64) not null,
type varchar(30) not null comment '收藏类型:VIDEO,TICKET,SITE,ARTIST,BAND,BRAND,STYLE,GOODS,MUSIC,SONG', type varchar(30) not null comment '收藏类型:VIDEO,TICKET,SITE,ARTIST,BAND,BRAND,STYLE,GOODS,MUSIC,SONG',
state tinyint default 1 not null comment '1-正常,2-删除', state tinyint default 1 not null comment '1-正常,2-删除',
created_at datetime not null, created_at datetime(3) not null,
updated_at datetime, updated_at datetime(3),
comment text comment text
) engine = InnoDB comment '收藏'; ) engine = InnoDB comment '收藏';
...@@ -193,8 +193,8 @@ create table adam_disposed ...@@ -193,8 +193,8 @@ create table adam_disposed
content_id int unsigned not null, content_id int unsigned not null,
type varchar(30) not null comment '想去类型:TICKET', type varchar(30) not null comment '想去类型:TICKET',
state tinyint default 1 not null comment '1-正常,2-删除', state tinyint default 1 not null comment '1-正常,2-删除',
created_at datetime not null, created_at datetime(3) not null,
updated_at datetime, updated_at datetime(3),
comment text comment text
) engine = InnoDB comment '想去'; ) engine = InnoDB comment '想去';
create index idx_disposed_uid on adam_disposed (uid); create index idx_disposed_uid on adam_disposed (uid);
...@@ -215,8 +215,8 @@ create table adam_member ...@@ -215,8 +215,8 @@ create table adam_member
interests_detail text comment '权益详情', interests_detail text comment '权益详情',
# gift_pack_id varchar(64) comment '礼包ID', # gift_pack_id varchar(64) comment '礼包ID',
notes text NOT NULL COMMENT '注意事项', notes text NOT NULL COMMENT '注意事项',
created_at datetime, created_at datetime(3),
updated_at datetime, updated_at datetime(3),
is_notice tinyint comment '是否展示须知', is_notice tinyint comment '是否展示须知',
notice_info text comment '须知内容', notice_info text comment '须知内容',
notice_title varchar(255), notice_title varchar(255),
...@@ -239,8 +239,8 @@ create table adam_member_price ...@@ -239,8 +239,8 @@ create table adam_member_price
price_fixed decimal(8, 2) comment '折扣价', price_fixed decimal(8, 2) comment '折扣价',
days int NOT NULL DEFAULT '0' COMMENT '会员包天数', days int NOT NULL DEFAULT '0' COMMENT '会员包天数',
detail text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '会员包须知', detail text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '会员包须知',
created_at datetime, created_at datetime(3),
updated_at datetime, updated_at datetime(3),
comment text comment text
); );
-- >>------------------------------------------------------------------------------------ -- >>------------------------------------------------------------------------------------
...@@ -263,9 +263,9 @@ create table adam_member_order ...@@ -263,9 +263,9 @@ create table adam_member_order
device_from varchar(20) comment '支付终端:app,wap,js,applet', device_from varchar(20) comment '支付终端:app,wap,js,applet',
pay_type varchar(20) comment '支付方式:alipay,wepay,vipcode,giftcode', pay_type varchar(20) comment '支付方式:alipay,wepay,vipcode,giftcode',
pay_no varchar(64) comment '支付订单', pay_no varchar(64) comment '支付订单',
payment_at datetime default null comment '支付时间', payment_at datetime(3) default null comment '支付时间',
created_at datetime, created_at datetime(3),
updated_at datetime, updated_at datetime(3),
client_ip varchar(50), client_ip varchar(50),
source varchar(20), source varchar(20),
version varchar(20), version varchar(20),
...@@ -280,9 +280,9 @@ create table adam_user_member ...@@ -280,9 +280,9 @@ create table adam_user_member
member_id varchar(255) comment '会员类型id', member_id varchar(255) comment '会员类型id',
member_no int unsigned not null, member_no int unsigned not null,
state tinyint comment '1-NORMAL,2-INVALID', state tinyint comment '1-NORMAL,2-INVALID',
expiry_at datetime comment '到期日期', expiry_at datetime(3) comment '到期日期',
created_at datetime, created_at datetime(3),
updated_at datetime, updated_at datetime(3),
comment text comment text
); );
-- >>------------------------------------------------------------------------------------ -- >>------------------------------------------------------------------------------------
...@@ -296,14 +296,14 @@ create table adam_member_code ...@@ -296,14 +296,14 @@ create table adam_member_code
member_price_id varchar(255) comment '会员价格ID', member_price_id varchar(255) comment '会员价格ID',
member_no varchar(20) comment '预留会员号', member_no varchar(20) comment '预留会员号',
state tinyint comment '0-未用,1-已用,2-失效', state tinyint comment '0-未用,1-已用,2-失效',
created_at datetime, created_at datetime(3),
updated_at datetime, updated_at datetime(3),
buy_order_no varchar(255) default null comment '购买会员码订单号', buy_order_no varchar(255) default null comment '购买会员码订单号',
buy_uid varchar(255) default null comment '购买会员码用户id', buy_uid varchar(255) default null comment '购买会员码用户id',
buy_at datetime default null comment '购买时间', buy_at datetime(3) default null comment '购买时间',
use_order_no varchar(64) default null comment '消费订单号', use_order_no varchar(64) default null comment '消费订单号',
use_uid varchar(64) default null comment '消费用户ID', use_uid varchar(64) default null comment '消费用户ID',
use_at datetime default null, use_at datetime(3) default null,
comment text comment text
); );
-- >>------------------------------------------------------------------------------------ -- >>------------------------------------------------------------------------------------
......
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