123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- -- [system模块] 何亚博 20230427 三方登录微信配置
- insert into digital_operation.visual_subscribe_notify_conf(attri_key, attri_value, attri_name, notify_type)
- values ('app_id', '', '微信应用id', 8),
- ('app_secret', '', '微信应用secret', 8),
- ('app_id', '', '小程序appid', 9),
- ('app_secret', '', '小程序secret', 9),
- ('app_url', '', '小程序请求url', 9);
- -- [system模块] 何亚博 20230427 三方登录账号绑定表
- drop table if exists digital_operation.third_bind_count_record;
- create table digital_operation.third_bind_count_record
- (
- id int auto_increment
- primary key,
- wechat_open_id varchar(64) null comment '微信openId',
- qy_wechat_code varchar(64) null comment '企业微信code',
- ding_open_id varchar(64) null comment '钉钉openId',
- fei_shu_open_id varchar(64) null comment '飞书openId',
- micro_app_openId varchar(64) null comment '小程序openId',
- micro_app_unionid varchar(64) null comment '小程序unionid',
- micro_app_phone varchar(11) null comment '小程序绑定的手机号',
- user_id bigint(64) not null comment '绑定人员id',
- create_time datetime default now() not null comment '创建时间',
- update_time datetime default now() not null comment '更新时间'
- ) comment '三方登录绑定账号记录表';
- -- [BI模块] 何亚博 20230512 大屏区分移动大屏字段
- alter table digital_operation.visual_data
- add column is_mobile int default 0 not null comment '是否为移动大屏(0:否,1:是)';
- alter table digital_operation.visual_data
- add column mobile_content longtext null comment '移动组件json内容';
- alter table digital_operation.visual_component
- add column is_mobile int not null default 0 comment '是否为移动大屏组件';
- -- digital_operation.blade_message definition
- drop table if exists digital_operation.blade_message;
- CREATE TABLE digital_operation.blade_message
- (
- `id` bigint(64) NOT NULL COMMENT '主键',
- `user_id` bigint(64) DEFAULT NULL COMMENT '接收人',
- `module` varchar(50) DEFAULT NULL COMMENT '模块',
- `type` tinyint(4) DEFAULT NULL COMMENT '类型:0待办 1抄送 2通过 3拒绝',
- `subject` varchar(50) DEFAULT NULL COMMENT '主题',
- `content` varchar(50) DEFAULT NULL COMMENT '内容',
- `status` tinyint(4) DEFAULT NULL COMMENT '状态:0未读 1已读',
- `create_time` datetime DEFAULT NULL COMMENT '创建时间',
- `update_time` datetime DEFAULT NULL COMMENT '更新时间',
- PRIMARY KEY (`id`) USING BTREE
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='消息提醒';
- -- 数据预警
- alter table digital_operation.visual_warning
- add column approve_status tinyint default 1 not null comment '审批状态(0-审核中/1-审核通过/2-审核拒绝)';
- --消息通知方式
- ALTER TABLE digital_operation.visual_subscribe
- ADD tenant_id varchar(12) default '0' COMMENT '租户id';
- ALTER TABLE digital_operation.visual_subscribe_notify_conf
- ADD tenant_id varchar(12) default '0' COMMENT '租户id';
- ALTER TABLE digital_operation.visual_subscribe_notify_conf
- ADD sort tinyint(4) NULL COMMENT '排序';
- ALTER TABLE digital_operation.visual_warning
- ADD warning_ways varchar(200) NULL COMMENT '预警消息方式';
- -- [BI模块] 何亚博 20230711 上传iframe压缩包
- drop table if exists digital_operation.visual_external_link_info;
- create table digital_operation.visual_external_link_info
- (
- id int auto_increment primary key,
- path varchar(50) null comment '文件访问路径',
- upload_user varchar(20) comment '文件上传人姓名',
- upload_user_id varchar(20) comment '文件上传人id',
- status tinyint default 1 comment '文件是否可用,0:不可用,1:可用',
- trend_id varchar(20) null comment '租户id',
- upload_time datetime default now() comment '文件上传时间'
- ) comment '自定义iframe记录表';
- -- [BI模块] 何亚博 20230711 复制数据集
- alter table digital_operation.cube_data
- add column old_cube_data_Id int null comment '被复制的数据集id';
- -- [表单模块] 畅玉春 20230713 添加使用场景
- alter table digital_operation.base_visualdev
- add column web_scene varchar(20) DEFAULT NULL COMMENT '使用场景';
- -- [system] 何亚博 20230718 公众号小程序登录
- drop table if exists third_login_conf;
- create table digital_operation.third_login_conf
- (
- id int auto_increment primary key,
- tenant_id varchar(20) null comment '租户id',
- login_conf text not null comment '登录配置',
- create_user varchar(50) not null comment '创建人',
- create_user_id bigint not null comment '创建人id',
- create_time datetime default now() comment '创建时间',
- update_time datetime default now() comment '更新时间'
- ) comment '三方登录配置表';
- alter table digital_operation.third_login_conf add column name varchar(50) null comment '配置名称';
- -- 以上3.6.0.sql可以满足
- alter table report_datasource add column db_schema varchar(225) comment '模式';
|