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
846e50c8
Commit
846e50c8
authored
Sep 28, 2022
by
仲光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add data sql.
parent
c4866835
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
27 deletions
+32
-27
2022.05.25 之后需要在线上数据执行的SQL.sql
2022.05.25 之后需要在线上数据执行的SQL.sql
+32
-27
No files found.
2022.05.25 之后需要在线上数据执行的SQL.sql
View file @
846e50c8
#
#
2
022
.
05
.
25
#
#
2
022
.
05
.
25
...
...
@@ -4920,34 +4920,39 @@
###
线上数据已经执行
执行时间
:
2022
.
09
.
14
17
:
49
alter
table
expand_data
modify
data_system_name
int
(
1
)
not
null
comment
'数据在系统内的名称. 1.改造复原 2:天花板 3:墙面 4:形象墙 5:地面 6:照明设施 7:门窗 8:配电设施 9:门禁 10:家私损坏 11:门锁 12:其他 13:打印费及其他费用 14:家私缺陷/清理费用 15:清洁费用 16:商务服务费 17:是否办妥以租赁单元为注册地址或营业地址的工商注销或变更手续 18:应交商务服务费用 19:应交滞纳金及违约金 20:应交总结金额 21:交楼单验收项目 22: 企业资料 23: 推荐入驻商务小程序二维码 24: 城市仲裁院信息 在系统内是一个枚举'
;
alter
table
expand_data
modify
data_type
int
(
1
)
not
null
comment
'数据类型.1:退租 2:交楼单 3: 企业资料 4: 推荐入驻商务小程序二维码 5:城市仲裁院信息 在系统内一个枚举值'
;
CREATE
TABLE
bill_account_info
(
uuid
BIGINT
(
19
)
NOT
NULL
COMMENT
'主键uuid'
PRIMARY
KEY
,
project_contract_info_uuid
BIGINT
(
19
)
NOT
NULL
COMMENT
'project_contract_info uuid'
,
project_uuid
CHAR
(
32
)
NULL
COMMENT
'项目uuid(project表)'
,
project_contract_type
INT
(
1
)
default
1
NULL
COMMENT
'1标准间(高端商务办公) ; 2创客空间 ;3物业管理费主体'
,
bill_uuid
BIGINT
(
19
)
NOT
NULL
COMMENT
'bill uuid'
,
contract_uuid
BIGINT
(
19
)
NOT
NULL
COMMENT
'contract uuid'
,
type
INT
(
1
)
NULL
COMMENT
'类型: 1:通常账单 2:物业费账单'
,
is_delete
INT
(
1
)
DEFAULT
0
NULL
COMMENT
'是否删除: 0:未删 1:已删除 default:0'
,
create_uuid
CHAR
(
32
)
NULL
COMMENT
'创建人'
,
update_uuid
CHAR
(
32
)
NULL
COMMENT
'修改人'
,
create_time
DATETIME
DEFAULT
CURRENT_TIMESTAMP
NULL
COMMENT
'创建时间'
,
update_time
DATETIME
DEFAULT
CURRENT_TIMESTAMP
NULL
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'修改时间'
)
COMMENT
'账单账号信息'
;
#
alter
table
expand_data
#
modify
data_system_name
int
(
1
)
not
null
comment
'数据在系统内的名称. 1.改造复原 2:天花板 3:墙面 4:形象墙 5:地面 6:照明设施 7:门窗 8:配电设施 9:门禁 10:家私损坏 11:门锁 12:其他 13:打印费及其他费用 14:家私缺陷/清理费用 15:清洁费用 16:商务服务费 17:是否办妥以租赁单元为注册地址或营业地址的工商注销或变更手续 18:应交商务服务费用 19:应交滞纳金及违约金 20:应交总结金额 21:交楼单验收项目 22: 企业资料 23: 推荐入驻商务小程序二维码 24: 城市仲裁院信息 在系统内是一个枚举'
;
#
#
alter
table
expand_data
#
modify
data_type
int
(
1
)
not
null
comment
'数据类型.1:退租 2:交楼单 3: 企业资料 4: 推荐入驻商务小程序二维码 5:城市仲裁院信息 在系统内一个枚举值'
;
#
#
#
CREATE
TABLE
bill_account_info
#
(
#
uuid
BIGINT
(
19
)
NOT
NULL
COMMENT
'主键uuid'
PRIMARY
KEY
,
#
project_contract_info_uuid
BIGINT
(
19
)
NOT
NULL
COMMENT
'project_contract_info uuid'
,
#
project_uuid
CHAR
(
32
)
NULL
COMMENT
'项目uuid(project表)'
,
#
project_contract_type
INT
(
1
)
default
1
NULL
COMMENT
'1标准间(高端商务办公) ; 2创客空间 ;3物业管理费主体'
,
#
bill_uuid
BIGINT
(
19
)
NOT
NULL
COMMENT
'bill uuid'
,
#
contract_uuid
BIGINT
(
19
)
NOT
NULL
COMMENT
'contract uuid'
,
#
type
INT
(
1
)
NULL
COMMENT
'类型: 1:通常账单 2:物业费账单'
,
#
is_delete
INT
(
1
)
DEFAULT
0
NULL
COMMENT
'是否删除: 0:未删 1:已删除 default:0'
,
#
create_uuid
CHAR
(
32
)
NULL
COMMENT
'创建人'
,
#
update_uuid
CHAR
(
32
)
NULL
COMMENT
'修改人'
,
#
create_time
DATETIME
DEFAULT
CURRENT_TIMESTAMP
NULL
COMMENT
'创建时间'
,
#
update_time
DATETIME
DEFAULT
CURRENT_TIMESTAMP
NULL
ON
UPDATE
CURRENT_TIMESTAMP
COMMENT
'修改时间'
#
)
COMMENT
'账单账号信息'
;
#
#
CREATE
INDEX
idx_project_contract_info_uuid
ON
bill_account_info
(
project_contract_info_uuid
);
#
CREATE
INDEX
idx_project_uuid_project_contract_type
ON
bill_account_info
(
project_uuid
,
project_contract_type
);
#
CREATE
INDEX
idx_contract_uuid
ON
bill_account_info
(
contract_uuid
);
#
CREATE
INDEX
idx_bill_uuid
ON
bill_account_info
(
bill_uuid
);
#
#
alter
table
bill_item
#
modify
bill_tag
int
(
1
)
default
0
null
comment
'账单标签: 0:普通账单 1:退租合同账单快照(用于撤销退租之后的账单回退) 2:退租手动添加账单 (用于撤销退租之后删除退租时手动添加的账单) 3:账单金额已编辑(退租时编辑) 4:结清时生产的滞纳金 default: 0'
;
CREATE
INDEX
idx_project_contract_info_uuid
ON
bill_account_info
(
project_contract_info_uuid
);
CREATE
INDEX
idx_project_uuid_project_contract_type
ON
bill_account_info
(
project_uuid
,
project_contract_type
);
CREATE
INDEX
idx_contract_uuid
ON
bill_account_info
(
contract_uuid
);
CREATE
INDEX
idx_bill_uuid
ON
bill_account_info
(
bill_uuid
);
###
线上数据已经执行
执行时间
:
2022
.
09
.
28
09
:
25
...
...
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