From fc4f1764ac16c8321dc26fde2923af773f6be43d Mon Sep 17 00:00:00 2001 From: buke <1312023945@qq.com> Date: Fri, 9 Aug 2024 14:01:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1723175319_create_table_user_address.up.sql | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 1723175319_create_table_user_address.up.sql diff --git a/1723175319_create_table_user_address.up.sql b/1723175319_create_table_user_address.up.sql new file mode 100644 index 0000000..3488da5 --- /dev/null +++ b/1723175319_create_table_user_address.up.sql @@ -0,0 +1,20 @@ +CREATE TABLE `ufutx_user_address` +( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `user_id` int(11) NOT NULL COMMENT '用户id', + `name` varchar(32) NOT NULL COMMENT '收件人姓名', + `mobile` char(11) NOT NULL COMMENT '收件人手机号', + `area_code` varchar(12) DEFAULT NULL COMMENT '国家手机编号', + `province` varchar(32) NOT NULL COMMENT '省份', + `province_pid` int(10) DEFAULT NULL COMMENT '省份编号', + `city` varchar(32) NOT NULL COMMENT '市', + `city_pid` int(10) DEFAULT NULL COMMENT '市编号', + `county` varchar(64) NOT NULL COMMENT '区县', + `county_pid` int(10) DEFAULT NULL COMMENT '区县编号', + `detail_address` varchar(255) NOT NULL COMMENT '详细地址', + `is_default` tinyint(4) NOT NULL DEFAULT '0' COMMENT '默认 0:否 1:是', + `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