v3.5.0.sql 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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 digital_operation.visual_warning
  49. add column approve_status tinyint default 1 not null comment '审批状态(0-审核中/1-审核通过/2-审核拒绝)';
  50. --消息通知方式
  51. ALTER TABLE digital_operation.visual_subscribe
  52. ADD tenant_id varchar(12) default '0' COMMENT '租户id';
  53. ALTER TABLE digital_operation.visual_subscribe_notify_conf
  54. ADD tenant_id varchar(12) default '0' COMMENT '租户id';
  55. ALTER TABLE digital_operation.visual_subscribe_notify_conf
  56. ADD sort tinyint(4) NULL COMMENT '排序';
  57. ALTER TABLE digital_operation.visual_warning
  58. ADD warning_ways varchar(200) NULL COMMENT '预警消息方式';
  59. -- [BI模块] 何亚博 20230711 上传iframe压缩包
  60. drop table if exists digital_operation.visual_external_link_info;
  61. create table digital_operation.visual_external_link_info
  62. (
  63. id int auto_increment primary key,
  64. path varchar(50) null comment '文件访问路径',
  65. upload_user varchar(20) comment '文件上传人姓名',
  66. upload_user_id varchar(20) comment '文件上传人id',
  67. status tinyint default 1 comment '文件是否可用,0:不可用,1:可用',
  68. trend_id varchar(20) null comment '租户id',
  69. upload_time datetime default now() comment '文件上传时间'
  70. ) comment '自定义iframe记录表';
  71. -- [BI模块] 何亚博 20230711 复制数据集
  72. alter table digital_operation.cube_data
  73. add column old_cube_data_Id int null comment '被复制的数据集id';
  74. -- [表单模块] 畅玉春 20230713 添加使用场景
  75. alter table digital_operation.base_visualdev
  76. add column web_scene varchar(20) DEFAULT NULL COMMENT '使用场景';
  77. -- [system] 何亚博 20230718 公众号小程序登录
  78. drop table if exists third_login_conf;
  79. create table digital_operation.third_login_conf
  80. (
  81. id int auto_increment primary key,
  82. tenant_id varchar(20) null comment '租户id',
  83. login_conf text not null comment '登录配置',
  84. create_user varchar(50) not null comment '创建人',
  85. create_user_id bigint not null comment '创建人id',
  86. create_time datetime default now() comment '创建时间',
  87. update_time datetime default now() comment '更新时间'
  88. ) comment '三方登录配置表';
  89. alter table digital_operation.third_login_conf add column name varchar(50) null comment '配置名称';
  90. -- 以上3.6.0.sql可以满足
  91. alter table report_datasource add column db_schema varchar(225) comment '模式';