From 1211f7d3ddfa9f393e6fd313e5f70ff975a54ce4 Mon Sep 17 00:00:00 2001 From: buke <1312023945@qq.com> Date: Tue, 6 Aug 2024 16:27:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=97=A5=E8=A1=A8=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E6=94=B6=E8=97=8F=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1722851926_create_table_user_birthday.up.sql | 16 ++++++++++++++++ 1722931413_create_table_dynamic_collect.up.sql | 11 +++++++++++ 2 files changed, 27 insertions(+) create mode 100644 1722851926_create_table_user_birthday.up.sql create mode 100644 1722931413_create_table_dynamic_collect.up.sql diff --git a/1722851926_create_table_user_birthday.up.sql b/1722851926_create_table_user_birthday.up.sql new file mode 100644 index 0000000..f89ffc8 --- /dev/null +++ b/1722851926_create_table_user_birthday.up.sql @@ -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='用户生日库'; \ No newline at end of file diff --git a/1722931413_create_table_dynamic_collect.up.sql b/1722931413_create_table_dynamic_collect.up.sql new file mode 100644 index 0000000..9b32464 --- /dev/null +++ b/1722931413_create_table_dynamic_collect.up.sql @@ -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='动态收藏表'; \ No newline at end of file