生日表以及收藏表
This commit is contained in:
parent
9ca396657d
commit
1211f7d3dd
16
1722851926_create_table_user_birthday.up.sql
Normal file
16
1722851926_create_table_user_birthday.up.sql
Normal file
@ -0,0 +1,16 @@
|
||||
CREATE TABLE `ufutx_user_birthday`
|
||||
(
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` int(11) NOT NULL COMMENT '用户id',
|
||||
`name` varchar(255) DEFAULT NULL COMMENT '用户姓名',
|
||||
`mobile` char(11) NOT NULL COMMENT '用户手机号',
|
||||
`sex` tinyint(4) NOT NULL DEFAULT '0' COMMENT '性别1:男,2:女',
|
||||
`birthday` varchar(255) NOT NULL COMMENT '生日',
|
||||
`created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
|
||||
`deleted_at` timestamp NULL DEFAULT NULL COMMENT '假删除时间',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `user_id` (`user_id`) USING BTREE,
|
||||
KEY `mobile` (`mobile`) USING BTREE,
|
||||
KEY `birthday` (`birthday`(191)) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户生日库';
|
11
1722931413_create_table_dynamic_collect.up.sql
Normal file
11
1722931413_create_table_dynamic_collect.up.sql
Normal file
@ -0,0 +1,11 @@
|
||||
CREATE TABLE `ufutx_dynamic_collect`
|
||||
(
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`user_id` int(11) NOT NULL COMMENT '用户id',
|
||||
`square_id` int(11) NOT NULL COMMENT '动态id',
|
||||
`to_user_id` int(11) NOT NULL COMMENT '动态用户id',
|
||||
`created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
|
||||
`updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `user_id` (`user_id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='动态收藏表';
|
Loading…
Reference in New Issue
Block a user