feat:分销码代码生成

This commit is contained in:
dzc committed 2025-12-04 10:43:33 +08:00
1 parent f5e64795cd
commit a4cddba118
15 files changed
+423 -17

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
-- ----------------------------
-- Table structure for trade_brokerage_code
-- ----------------------------
DROP TABLE IF EXISTS `trade_brokerage_code`;
CREATE TABLE `trade_brokerage_code`
(
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '收件地址编号',
`member_id` bigint NOT NULL COMMENT '用户编号',
`poster_pic` varchar(256) NOT NULL COMMENT '邀请海报图',
`code` varchar(32) NOT NULL COMMENT '邀请码',
`creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' 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 '租户编号',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin COMMENT = '分销码';