v3.5.0.sql 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. -- [system模块] 何亚博 20230427 三方登录微信配置
  2. insert into digital_operation.visual_subscribe_notify_conf(attri_key, attri_value, attri_name, notify_type)
  3. values ('app_id', '', '微信应用id', 8),
  4. ('app_secret', '', '微信应用secret', 8),
  5. ('app_id', '', '小程序appid', 9),
  6. ('app_secret', '', '小程序secret', 9),
  7. ('app_url', '', '小程序请求url', 9);
  8. -- [system模块] 何亚博 20230427 三方登录账号绑定表
  9. drop table if exists digital_operation.third_bind_count_record;
  10. create table digital_operation.third_bind_count_record
  11. (
  12. id int auto_increment
  13. primary key,
  14. wechat_open_id varchar(64) null comment '微信openId',
  15. qy_wechat_code varchar(64) null comment '企业微信code',
  16. ding_open_id varchar(64) null comment '钉钉openId',
  17. fei_shu_open_id varchar(64) null comment '飞书openId',
  18. micro_app_openId varchar(64) null comment '小程序openId',
  19. micro_app_unionid varchar(64) null comment '小程序unionid',
  20. micro_app_phone varchar(11) null comment '小程序绑定的手机号',
  21. user_id bigint(64) not null comment '绑定人员id',
  22. create_time datetime default now() not null comment '创建时间',
  23. update_time datetime default now() not null comment '更新时间'
  24. ) comment '三方登录绑定账号记录表';
  25. -- [BI模块] 何亚博 20230512 大屏区分移动大屏字段
  26. alter table digital_operation.visual_data
  27. add column is_mobile int default 0 not null comment '是否为移动大屏(0:否,1:是)';
  28. alter table digital_operation.visual_data
  29. add column mobile_content longtext null comment '移动组件json内容';
  30. alter table digital_operation.visual_component
  31. add column is_mobile int not null default 0 comment '是否为移动大屏组件';
  32. -- digital_operation.blade_message definition
  33. drop table if exists digital_operation.blade_message;
  34. CREATE TABLE digital_operation.blade_message
  35. (
  36. `id` bigint(64) NOT NULL COMMENT '主键',
  37. `user_id` bigint(64) DEFAULT NULL COMMENT '接收人',
  38. `module` varchar(50) DEFAULT NULL COMMENT '模块',
  39. `type` tinyint(4) DEFAULT NULL COMMENT '类型:0待办 1抄送 2通过 3拒绝',
  40. `subject` varchar(50) DEFAULT NULL COMMENT '主题',
  41. `content` varchar(50) DEFAULT NULL COMMENT '内容',
  42. `status` tinyint(4) DEFAULT NULL COMMENT '状态:0未读 1已读',
  43. `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  44. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  45. PRIMARY KEY (`id`) USING BTREE
  46. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='消息提醒';
  47. -- 数据预警
  48. alter table visual_warning add column approve_status tinyint default 1 not null comment '审批状态(0-审核中/1-审核通过/2-审核拒绝)';
  49. --消息通知方式
  50. ALTER TABLE visual_subscribe ADD tenant_id varchar(12) default "0" COMMENT '租户id';
  51. ALTER TABLE visual_subscribe_notify_conf ADD tenant_id varchar(12) default "0" COMMENT '租户id';
  52. ALTER TABLE visual_subscribe_notify_conf ADD sort tinyint(4) NULL COMMENT '排序';
  53. ALTER TABLE visual_warning ADD warning_ways varchar(200) NULL COMMENT '预警消息方式';