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
b0879ba1
Commit
b0879ba1
authored
Dec 06, 2023
by
仲光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add sql.
parent
9e90939b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
01-同步SQL记录.sql
MFG/01-同步SQL记录.sql
+32
-1
No files found.
MFG/01-同步SQL记录.sql
View file @
b0879ba1
#
alt
er
table
admin
#
alt
er
table
admin
...
...
@@ -3908,6 +3908,37 @@
#
2023
.
11
.
23
alter
table
contract
add
lease_renewal_origin_uuid
bigint
(
19
)
null
comment
'续租原合同uuid'
;
alter
table
project_floor_sub_item
modify
status
tinyint
(
1
)
null
comment
'2023.12.2之后:状态 0:在租 1:空置 2:临到期(<90天) 4:空置大于60 2023.12.2之前:状态 0 在租 1 空置 2临到期 。3 异常 4 空置 大于60'
;
CREATE
TABLE
`contract_life_cycle_info`
(
`contract_life_cycle_info_uuid`
bigint
(
20
)
NOT
NULL
COMMENT
'uuid'
,
`contract_uuid`
bigint
(
20
)
NOT
NULL
COMMENT
'合同/意向书uuid'
,
`life_cycle_association_contract_uuid`
bigint
(
20
)
NULL
COMMENT
'生命周期关联的合同uuid'
,
`contract_type`
tinyint
(
1
)
NOT
NULL
COMMENT
'contractType 合同类型 1:合同 2:意向书'
,
`contract_life_cycle_role`
tinyint
(
1
)
NOT
NULL
COMMENT
'生命周期角色:0:新建合同 1:续租原合同 2:续租新合同 3:扩租原合同 4:扩租新合同 5:以大换小原合同 6:以大换小新合同 7:以小换大原合同 8:以小换大新合同 9:变更主体(追加补充协议) 10:变更主体(新增新合同)原合同 11:变更主体(新增新合同)新合同 12:合同条款变更(含补充协议)原合同 13:合同条款变更(含补充协议)新合同'
,
`life_cycle_sequence`
int
(
3
)
NOT
NULL
COMMENT
'生命周期序号 (每个合同的序号是独立)'
,
`is_deleted`
tinyint
(
1
)
DEFAULT
0
COMMENT
'是否删除 0:未删除 1:已删除'
,
`create_time`
datetime
DEFAULT
CURRENT_TIMESTAMP
null
comment
'创建时间'
,
`update_time`
datetime
DEFAULT
CURRENT_TIMESTAMP
null
on
update
CURRENT_TIMESTAMP
comment
'修改时间'
,
`extend_info`
text
DEFAULT
NULL
COMMENT
'扩展信息 json格式'
,
PRIMARY
KEY
(
`contract_life_cycle_info_uuid`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COMMENT
=
'合同/意向书生命周期信息'
;
create
index
idx_contract_life_cycle_role_index
on
contract_life_cycle_info
(
contract_life_cycle_role
);
create
index
idx_contract_uuid_index
on
contract_life_cycle_info
(
contract_uuid
);
create
index
idx_association_contract_uuid_index
on
contract_life_cycle_info
(
life_cycle_association_contract_uuid
);
...
...
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