- 添加 leaf-segment 分布式ID配置表及初始数据 fix(pom):修正模块 artifactId 命名 - 将 han-note-api 模块名称更正为 han-note-note-api
33 lines
1.8 KiB
SQL
33 lines
1.8 KiB
SQL
INSERT INTO `t_permission` (`id`, `parent_id`, `name`, `type`, `menu_url`, `menu_icon`, `sort`, `permission_key`,
|
|
`status`, `create_time`, `update_time`, `is_deleted`)
|
|
VALUES (1, 0, '发布笔记', 3, '', '', 1, 'app:note:publish', 0, now(), now(), b'0');
|
|
|
|
INSERT INTO `t_permission` (`id`, `parent_id`, `name`, `type`, `menu_url`, `menu_icon`, `sort`, `permission_key`,
|
|
`status`, `create_time`, `update_time`, `is_deleted`)
|
|
VALUES (2, 0, '发布评论', 3, '', '', 2, 'app:comment:publish', 0, now(), now(), b'0');
|
|
|
|
INSERT INTO `t_role` (`id`, `role_name`, `role_key`, `status`, `sort`, `remark`, `create_time`, `update_time`,
|
|
`is_deleted`)
|
|
VALUES (1, '普通用户', 'common_user', 0, 1, '', now(), now(), b'0');
|
|
|
|
INSERT INTO `t_role_permission_rel` (`id`, `role_id`, `permission_id`, `create_time`, `update_time`, `is_deleted`)
|
|
VALUES (1, 1, 1, now(), now(), b'0');
|
|
|
|
INSERT INTO `t_role_permission_rel` (`id`, `role_id`, `permission_id`, `create_time`, `update_time`, `is_deleted`)
|
|
VALUES (2, 1, 2, now(), now(), b'0');
|
|
|
|
INSERT INTO `han_note`.`t_channel` (`name`, `create_time`, `update_time`, `is_deleted`)
|
|
VALUES ('美食', now(), now(), 0);
|
|
INSERT INTO `han_note`.`t_channel` (`name`, `create_time`, `update_time`, `is_deleted`)
|
|
VALUES ('娱乐', now(), now(), 0);
|
|
|
|
INSERT INTO `han_note`.`t_topic` (`name`, `create_time`, `update_time`, `is_deleted`)
|
|
VALUES ('高分美剧推荐', now(), now(), 0);
|
|
INSERT INTO `han_note`.`t_topic` (`name`, `create_time`, `update_time`, `is_deleted`)
|
|
VALUES ('下饭综艺推荐', now(), now(), 0);
|
|
|
|
INSERT INTO `han_note`.`t_channel_topic_rel` (`channel_id`, `topic_id`, `create_time`, `update_time`)
|
|
VALUES (2, 1, now(), now());
|
|
INSERT INTO `han_note`.`t_channel_topic_rel` (`channel_id`, `topic_id`, `create_time`, `update_time`)
|
|
VALUES (2, 2, now(), now());
|