Commit 9f754857 by 仲光辉

feat:新增sql

parent b53dd009
# # 2022.05.25 # # 2022.05.25
...@@ -5100,6 +5100,61 @@ ...@@ -5100,6 +5100,61 @@
### 线上数据已经执行 执行时间: 2022.10.13 18:16 ### 线上数据已经执行 执行时间: 2022.10.13 18:16
alter table notification_instruments
modify content_type int(1) default 1 null comment '文本类型 1:模版world 2:富文本 3:附件';
alter table notification_instruments
add file_url varchar(200) null comment '文件地址/附件地址(content_type=3)';
alter table expand_data
modify data_secondary_type int(1) null comment '数据二级类型 1:工程租 2:楼面租 3:商务租 4:法务组 5:结算组 6: 其他费用总计 7:交楼单 8: 企业资料 9: 交楼单操作指引 在系统是一个枚举值';
-- auto-generated definition
create table notification_instruments_attachment_record
(
uuid bigint not null comment '主键 uuid'
primary key,
notification_instruments_uuid bigint not null comment 'notification_instruments uuid',
notification_instruments_sending_statistics_uuid bigint not null comment 'notification_instruments_sending_statistics uuid',
tag tinyint(1) not null comment '标签: 0:用户上传 1:后台编辑',
type tinyint(1) not null comment '类型: 1: 文书附件 2: 文书附件编辑记录 ',
document_name varchar(100) null comment '文档名称',
url varchar(200) not null comment '附件地址',
record_id bigint(19) not null comment '记录 id 同一记录的 记录 id 是一致的.',
create_uuid char(32) not null comment '创建人',
creator_name varchar(64) null comment '创建人姓名',
update_uuid char(32) not null comment '修改人',
updater_name varchar(64) null comment '更新人姓名',
create_time datetime default CURRENT_TIMESTAMP null comment '创建时间',
update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '修改时间',
is_delete tinyint(1) default 0 null comment '是否删除: 0:未删 1:已删除 default:0'
)
comment '通知文书附件记录';
create index idx_notification_instruments_sending_statistics_uuid_index
on notification_instruments_attachment_record (notification_instruments_sending_statistics_uuid);
create index idx_notification_instruments_uuid_index
on notification_instruments_attachment_record (notification_instruments_uuid);
alter table notification_instruments_record
add submit_count int default 0 null comment '用户提交(交楼单图片)次数';
alter table notification_instruments_attachment_record
add notification_instruments_record_uuid bigint(19) not null comment 'notification_instruments_record uuid ';
alter table notification_instruments
add is_custom tinyint(1) default 0 null comment '是否自定义: 0:否 1:是 default: 0';
alter table notification_instruments_attachment_record
add company_uuid varchar(64) null comment 'company uuid';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment