Skip to content

Commit

Permalink
feat:sql
Browse files Browse the repository at this point in the history
  • Loading branch information
gzydong committed Jan 12, 2025
1 parent b019493 commit 0c5c99c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions internal/mission/resource/lumenim.sql
Original file line number Diff line number Diff line change
Expand Up @@ -535,3 +535,17 @@ CREATE TABLE IF NOT EXISTS `users_emoticon`
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci COMMENT ='用户收藏表情包';;



CREATE TABLE `article_history`
(
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`user_id` int(11) unsigned NOT NULL COMMENT '用户ID',
`article_id` int(11) unsigned NOT NULL COMMENT '笔记ID',
`content` longtext NOT NULL COMMENT 'markdown 内容',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_created_at` (`created_at`) USING BTREE,
KEY `idx_article_id` (`article_id`) USING BTREE,
KEY `idx_user_id_article_id` (`user_id`,`article_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='笔记历史记录表';;

0 comments on commit 0c5c99c

Please sign in to comment.