feat:用户tag

This commit is contained in:
dzc committed 2025-11-26 17:03:28 +08:00
1 parent 6c125d87b5
commit 2e1fd182aa
4 files changed
+69 -17

No files matched your search

+13 -17
View File
@@ -104,7 +104,7 @@ CREATE TABLE `member_photo`
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户相册id',
`biz_type` varchar(32) NOT NULL COMMENT '上传途径',
`address` bigint NOT NULL COMMENT '资源地址',
`tag-json` varchar(512) DEFAULT NULL COMMENT 'tag-json',
`tag_json` varchar(512) DEFAULT NULL COMMENT 'tag_json',
`issue_long` double precision DEFAULT NULL COMMENT '发布-经度',
`issue_lat` double precision DEFAULT NULL COMMENT '发布-纬度',
`issue_province` varchar(64) DEFAULT NULL COMMENT '发布-省',
@@ -144,27 +144,23 @@ CREATE TABLE `member_location`
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户位置记录';
-- ----------------------------
-- Table structure for member_location
-- Table structure for member_tag
-- ----------------------------
DROP TABLE IF EXISTS `member_location`;
CREATE TABLE `member_location`
DROP TABLE IF EXISTS `member_tag`;
CREATE TABLE `member_tag`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '会员id',
`long` double precision DEFAULT NULL COMMENT '经度',
`lat` double precision DEFAULT NULL COMMENT '纬度',
`province` varchar(64) DEFAULT NULL COMMENT '省',
`city` varchar(64) DEFAULT NULL COMMENT '市',
`district` varchar(64) DEFAULT NULL COMMENT '区',
`address` varchar(256) DEFAULT NULL COMMENT '详细地址',
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '用户tagid',
`member_id` bigint NOT NULL COMMENT '人员id',
`tag_title` varchar(64) NOT NULL COMMENT 'tag标题',
`tag_biz_id` bigint DEFAULT NULL COMMENT 'tag获取的对应id',
`creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
`tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
`tenant_id` bigint NOT NULL DEFAULT 0 COMMENT '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户位置记录';
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '用户tag';
-- ----------------------------
-- Table structure for member_open_type