chenhj
10 天以前 2db123a855bd3bb2182714cd15a9446987b0e7ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
-- ----------------------------
-- 13、参数配置表
-- ----------------------------
 
drop table if exists sys_config;
create table sys_config
(
    config_id    serial primary key,       -- PostgreSQL 使用 serial 实现自增
    config_name  varchar(100) default '',  -- 参数名称
    config_key   varchar(100) default '',  -- 参数键名
    config_value varchar(500) default '',  -- 参数键值
    config_type  char(1)      default 'N', -- 系统内置(Y是 N否)
    create_by    varchar(64)  default '',  -- 创建者
    create_time  timestamp,                -- 使用 timestamp 类型代替 datetime
    update_by    varchar(64)  default '',  -- 更新者
    update_time  timestamp,                -- 更新时间
    remark       varchar(500) default null -- 备注
);
 
-- 初始化数据插入
insert into sys_config (config_id, config_name, config_key, config_value, config_type, create_by, create_time,
                        update_by, update_time, remark)
values (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', current_timestamp, '', null,
        '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow'),
       (2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', current_timestamp, '', null,
        '初始化密码 123456'),
       (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', current_timestamp, '', null,
        '深色主题theme-dark,浅色主题theme-light'),
       (4, '账号自助-验证码开关', 'sys.account.captchaEnabled', 'true', 'Y', 'admin', current_timestamp, '', null,
        '是否开启验证码功能(true开启,false关闭)'),
       (5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'Y', 'admin', current_timestamp, '',
        null, '是否开启注册用户功能(true开启,false关闭)'),
       (6, '用户登录-黑名单列表', 'sys.login.blackIPList', '', 'Y', 'admin', current_timestamp, '', null,
        '设置登录IP黑名单限制,多个匹配项以;分隔,支持匹配(*通配、网段)');