Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dankal-data-view
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
仲光辉
dankal-data-view
Commits
780d467d
Commit
780d467d
authored
Dec 26, 2023
by
仲光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add sql.
parent
71b68ab4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
01-同步SQL记录.sql
MFG/01-同步SQL记录.sql
+29
-1
No files found.
MFG/01-同步SQL记录.sql
View file @
780d467d
#
alt
er
table
admin
#
alt
er
table
admin
...
@@ -3981,6 +3981,34 @@ alter table contract
...
@@ -3981,6 +3981,34 @@ alter table contract
alter
table
contract_file
alter
table
contract_file
add
relation_business_uuid
varchar
(
64
)
null
comment
'关联 业务 uuid (合同变更老合同的uuid)'
;
add
relation_business_uuid
varchar
(
64
)
null
comment
'关联 业务 uuid (合同变更老合同的uuid)'
;
#
mysql
:
合同变更信息记录表
CREATE
TABLE
`contract_change_info`
(
`contract_change_info_uuid`
BIGINT
(
19
)
NOT
NULL
COMMENT
'主键'
,
`contract_uuid`
BIGINT
(
19
)
NOT
NULL
comment
'contract uuid'
,
`business_uuid`
BIGINT
(
19
)
NULL
COMMENT
'关联业务uuid 例如:变更老合同 uuid'
,
`operation_type`
TINYINT
(
1
)
NOT
NULL
COMMENT
'操作类型: 1:扩租 2:以大换小 3:以小换大 4:变更主体(追加补充协议) 5:变更主体(新增新合同) 6:合同条款变更(含补充协议)'
,
`before_change_content`
TINYTEXT
NOT
NULL
COMMENT
'变更前内容'
,
`after_change_content`
TINYTEXT
NOT
NULL
COMMENT
'变更后内容'
,
`ext`
TEXT
NULL
COMMENT
'扩展字段.etc json string'
,
`remark`
VARCHAR
(
200
)
NOT
NULL
COMMENT
'变更备注'
,
create_uuid
CHAR
(
32
)
null
comment
'创建人'
,
creator_name
CHAR
(
64
)
null
comment
'创建人姓名'
,
update_uuid
CHAR
(
32
)
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-已删除'
,
PRIMARY
KEY
(
`contract_change_info_uuid`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
DEFAULT
CHARSET
=
utf8
COMMENT
=
'合同变更信息记录表'
;
CREATE
INDEX
`idx_contract_uuid`
ON
`contract_change_info`
(
`contract_uuid`
);
CREATE
INDEX
`idx_business_uuid`
ON
`contract_change_info`
(
`business_uuid`
);
CREATE
INDEX
`idx_operation_type`
ON
`contract_change_info`
(
`operation_type`
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment