mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2026-03-13 09:31:31 +08:00
66 lines
7.5 KiB
SQL
66 lines
7.5 KiB
SQL
insert into sys_menu (id, title, name, path, sort, icon, type, component, perms, status, display, cache, link, remark, parent_id, created_time, updated_time)
|
||
values (2049629108253622287, 'dict.menu', 'PluginDict', '/plugins/dict', 8, 'fluent-mdl2:dictionary', 1, '/plugins/dict/views/index', null, 1, 1, 1, '', null, 2049629108245233667, now(), null);
|
||
|
||
insert into sys_menu (id, title, name, path, sort, icon, type, component, perms, status, display, cache, link, remark, parent_id, created_time, updated_time)
|
||
values
|
||
(2049629108253622288, '新增类型', 'AddDictType', null, 0, null, 2, null, 'dict:type:add', 1, 0, 1, '', null, 2049629108253622287, now(), null),
|
||
(2049629108253622289, '修改类型', 'EditDictType', null, 0, null, 2, null, 'dict:type:edit', 1, 0, 1, '', null, 2049629108253622287, now(), null),
|
||
(2049629108253622290, '删除类型', 'DeleteDictType', null, 0, null, 2, null, 'dict:type:del', 1, 0, 1, '', null, 2049629108253622287, now(), null),
|
||
(2049629108253622291, '新增数据', 'AddDictData', null, 0, null, 2, null, 'dict:data:add', 1, 0, 1, '', null, 2049629108253622287, now(), null),
|
||
(2049629108253622292, '修改数据', 'EditDictData', null, 0, null, 2, null, 'dict:data:edit', 1, 0, 1, '', null, 2049629108253622287, now(), null),
|
||
(2049629108253622293, '删除数据', 'DeleteDictData', null, 0, null, 2, null, 'dict:data:del', 1, 0, 1, '', null, 2049629108253622287, now(), null);
|
||
|
||
insert into sys_dict_type (id, name, code, remark, created_time, updated_time)
|
||
values
|
||
(2048602512340156416, '通用状态', 'sys_status', '系统通用状态:1/0', now(), null),
|
||
(2048602512369516544, '通用开关', 'sys_choose', '系统通用开关:true/false', now(), null),
|
||
(2048602512432431104, '菜单类型', 'sys_menu_type', '系统菜单类型', now(), null),
|
||
(2048602512495345664, '登录状态', 'sys_login_status', '用户登录状态', now(), null),
|
||
(2048602512549871616, '数据规则运算符', 'sys_data_rule_operator', '数据权限规则运算符', now(), null),
|
||
(2048602512616980480, '数据规则表达式', 'sys_data_rule_expression', '数据权限规则表达式', now(), null),
|
||
(2048602512692477952, '前端参数配置', 'sys_frontend_config', '前端参数配置类型', now(), null),
|
||
(2048602512755392512, '任务策略类型', 'task_strategy_type', '定时任务策略类型', now(), null),
|
||
(2048602512818307072, '任务周期类型', 'task_period_type', '定时任务周期类型', now(), null),
|
||
(2048602512881221632, '通知公告', 'notice', '通知类型', now(), null),
|
||
(2048602512948330496, '在线状态', 'user_online_status', '用户在线状态', now(), null),
|
||
(2048602513015439360, '插件类型', 'sys_plugin_type', '插件类型', now(), null);
|
||
|
||
insert into sys_dict_data (id, type_code, label, value, color, sort, status, remark, type_id, created_time, updated_time)
|
||
values
|
||
(2048602513078353920, 'sys_status', '停用', '0', 'red', 1, 1, '停用状态', 2048602512340156416, now(), null),
|
||
(2048602513128685568, 'sys_status', '正常', '1', 'green', 2, 1, '正常状态', 2048602512340156416, now(), null),
|
||
(2048602513174822912, 'sys_choose', '关闭', 'false', 'error', 1, 1, '关闭状态', 2048602512369516544, now(), null),
|
||
(2048602513241931776, 'sys_choose', '开启', 'true', 'success', 2, 1, '开启状态', 2048602512369516544, now(), null),
|
||
(2048602513292263424, 'sys_menu_type', '目录', '0', 'orange', 1, 1, '菜单目录', 2048602512432431104, now(), null),
|
||
(2048602513359372288, 'sys_menu_type', '菜单', '1', 'default', 2, 1, '普通菜单', 2048602512432431104, now(), null),
|
||
(2048602513422286848, 'sys_menu_type', '按钮', '2', 'processing', 3, 1, '菜单按钮', 2048602512432431104, now(), null),
|
||
(2048602513476812800, 'sys_menu_type', '内嵌', '3', 'cyan', 4, 1, '内嵌页面', 2048602512432431104, now(), null),
|
||
(2048602513543921664, 'sys_menu_type', '外链', '4', 'purple', 5, 1, '外部链接', 2048602512432431104, now(), null),
|
||
(2048602513590059008, 'sys_login_status', '失败', '0', 'error', 1, 1, '登录失败状态', 2048602512495345664, now(), null),
|
||
(2048602513657167872, 'sys_login_status', '成功', '1', 'success', 2, 1, '登录成功状态', 2048602512495345664, now(), null),
|
||
(2048602513720082432, 'sys_data_rule_operator', 'AND', '0', 'green', 1, 1, '逻辑 AND 运算符', 2048602512549871616, now(), null),
|
||
(2048602513782996992, 'sys_data_rule_operator', 'OR', '1', 'gold', 2, 1, '逻辑 OR 运算符', 2048602512549871616, now(), null),
|
||
(2048602513850105856, 'sys_data_rule_expression', '等于(==)', '0', 'success', 1, 1, '等于比较表达式', 2048602512616980480, now(), null),
|
||
(2048602513917214720, 'sys_data_rule_expression', '不等于(!=)', '1', 'error', 2, 1, '不等于比较表达式', 2048602512616980480, now(), null),
|
||
(2048602513984323584, 'sys_data_rule_expression', '大于(>)', '2', 'magenta', 3, 1, '大于比较表达式', 2048602512616980480, now(), null),
|
||
(2048602514051432448, 'sys_data_rule_expression', '大于等于(>=)', '3', 'volcano', 4, 1, '大于等于比较表达式', 2048602512616980480, now(), null),
|
||
(2048602514118541312, 'sys_data_rule_expression', '小于(<)', '4', 'gold', 5, 1, '小于比较表达式', 2048602512616980480, now(), null),
|
||
(2048602514168872960, 'sys_data_rule_expression', '小于等于(<=)', '5', 'orange', 6, 1, '小于等于比较表达式', 2048602512616980480, now(), null),
|
||
(2048602514231787520, 'sys_data_rule_expression', '包含(in)', '6', 'purple', 7, 1, '包含表达式', 2048602512616980480, now(), null),
|
||
(2048602514303090688, 'sys_data_rule_expression', '不包含(not in)', '7', 'error', 8, 1, '不包含表达式', 2048602512616980480, now(), null),
|
||
(2048602514366005248, 'sys_frontend_config', '否', '0', 'red', 1, 1, '不是前端参数配置', 2048602512692477952, now(), null),
|
||
(2048602514433114112, 'sys_frontend_config', '是', '1', 'green', 2, 1, '是前端参数配置', 2048602512692477952, now(), null),
|
||
(2048602514500222976, 'task_strategy_type', 'Interval(间隔)', '0', 'cyan', 1, 1, '时间间隔策略', 2048602512755392512, now(), null),
|
||
(2048602514567331840, 'task_strategy_type', 'Crontab(计划)', '1', 'purple', 2, 1, '时间表达式策略', 2048602512755392512, now(), null),
|
||
(2048602514634440704, 'task_period_type', '天', 'days', 'processing', 1, 1, '定时任务周期类型-天', 2048602512818307072, now(), null),
|
||
(2048602514701549568, 'task_period_type', '小时', 'hours', 'magenta', 2, 1, '定时任务周期类型-小时', 2048602512818307072, now(), null),
|
||
(2048602514768658432, 'task_period_type', '分钟', 'minutes', 'volcano', 3, 1, '定时任务周期类型-分钟', 2048602512818307072, now(), null),
|
||
(2048602514835767296, 'task_period_type', '秒', 'seconds', 'gold', 4, 1, '定时任务周期类型-秒', 2048602512818307072, now(), null),
|
||
(2048602514902876160, 'task_period_type', '微妙', 'microseconds', 'warning', 5, 1, '定时任务周期类型-微妙', 2048602512818307072, now(), null),
|
||
(2048602514969985024, 'notice', '通知', '0', 'magenta', 1, 1, '通知类型', 2048602512881221632, now(), null),
|
||
(2048602515037093888, 'notice', '公告', '1', 'purple', 2, 1, '公告类型', 2048602512881221632, now(), null),
|
||
(2048602515104202752, 'user_online_status', '离线', '0', 'warning', 1, 1, '用户离线状态', 2048602512948330496, now(), null),
|
||
(2048602515171311616, 'user_online_status', '在线', '1', 'success', 2, 1, '用户在线状态', 2048602512948330496, now(), null),
|
||
(2048602515238420480, 'sys_plugin_type', '压缩包', '0', 'gold', 1, 1, '插件类型-压缩包', 2048602513015439360, now(), null),
|
||
(2048602515305529344, 'sys_plugin_type', 'GIT', '1', 'processing', 2, 1, '插件类型-GIT', 2048602513015439360, now(), null);
|