parent
a26cd2e3c5
commit
14e7a934de
|
@ -11,7 +11,7 @@ public enum CacheKeyEnum {
|
|||
* Redis各类缓存集合
|
||||
*/
|
||||
CAPTCHAT("captcha_codes:", 2, TimeUnit.MINUTES),
|
||||
LOGIN_USER_KEY("login_tokens:", 30, TimeUnit.MINUTES),
|
||||
LOGIN_USER_KEY("login_tokens:", 10*60, TimeUnit.MINUTES),
|
||||
RATE_LIMIT_KEY("rate_limit:", 60, TimeUnit.SECONDS),
|
||||
USER_ENTITY_KEY("user_entity:", 60, TimeUnit.MINUTES),
|
||||
ROLE_ENTITY_KEY("role_entity:", 60, TimeUnit.MINUTES),
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
DROP TABLE IF EXISTS `ab98_user_tag`;
|
||||
|
||||
CREATE TABLE `ab98_user_tag` (
|
||||
`tag_id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '标签ID',
|
||||
`ab98_user_id` BIGINT NOT NULL COMMENT '关联用户ID',
|
||||
`tag_name` VARCHAR(50) NOT NULL COMMENT '标签名称',
|
||||
`creator_id` BIGINT DEFAULT 0 COMMENT '创建者ID',
|
||||
`create_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
||||
`updater_id` BIGINT DEFAULT 0 COMMENT '更新者ID',
|
||||
`update_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
|
||||
`deleted` TINYINT(1) NOT NULL DEFAULT 0 COMMENT '删除标志(0存在 1删除)',
|
||||
PRIMARY KEY (`tag_id`),
|
||||
KEY `idx_user` (`ab98_user_id`),
|
||||
CONSTRAINT `fk_tag_user` FOREIGN KEY (`ab98_user_id`) REFERENCES `ab98_user` (`ab98_user_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户标签表';
|
Loading…
Reference in New Issue