Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
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
wangweidong
patzn-cloud-service-hmhj
Commits
caf968de
Commit
caf968de
authored
Jul 17, 2021
by
ghxdhr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增表
parent
9952fe3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
0 deletions
+91
-0
20210717新增表.sql
src/test/java/resources/db_sql/hmhj/v147/20210717新增表.sql
+91
-0
No files found.
src/test/java/resources/db_sql/hmhj/v147/20210717新增表.sql
0 → 100644
View file @
caf968de
-- ghx
-- ghx
-- 中心成本
CREATE
TABLE
"public"
.
"center_cost"
(
"id"
int8
NOT
NULL
,
"remark"
varchar
(
255
),
"company_id"
int8
,
"ctime"
timestamp
(
6
),
"uid"
int8
,
"lid"
int8
,
"ltime"
timestamp
(
6
),
"deleted"
int2
DEFAULT
0
,
"year"
varchar
(
10
),
"consume"
numeric
,
"total_cost"
numeric
)
;
COMMENT
ON
COLUMN
"public"
.
"center_cost"
.
"remark"
IS
'备注'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost"
.
"company_id"
IS
'企业ID'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost"
.
"ctime"
IS
'创建时间'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost"
.
"uid"
IS
'创建人ID'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost"
.
"lid"
IS
'最后修改人ID'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost"
.
"ltime"
IS
'最后修改时间'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost"
.
"deleted"
IS
'是否删除0否1是'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost"
.
"year"
IS
'年度'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost"
.
"consume"
IS
'已消耗'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost"
.
"total_cost"
IS
'总成本'
;
COMMENT
ON
TABLE
"public"
.
"center_cost"
IS
'中心成本'
;
-- 中心成本记录
CREATE
TABLE
"public"
.
"center_cost_record"
(
"id"
int8
NOT
NULL
,
"center_cost_id"
int8
,
"remark"
varchar
(
255
),
"ctime"
timestamp
(
0
),
"uid"
int8
,
"lid"
int8
,
"ltime"
timestamp
(
0
),
"deleted"
int2
DEFAULT
0
,
"company_id"
int8
,
"operator"
varchar
(
50
),
"operator_id"
int8
)
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"id"
IS
'主键'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"center_cost_id"
IS
'中心成本ID'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"remark"
IS
'操作原因'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"ctime"
IS
'创建时间'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"uid"
IS
'创建人ID'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"lid"
IS
'最后修改人ID'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"ltime"
IS
'最后修改时间'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"deleted"
IS
'是否删除0否1是'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"company_id"
IS
'企业ID'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"operator"
IS
'操作人'
;
COMMENT
ON
COLUMN
"public"
.
"center_cost_record"
.
"operator_id"
IS
'操作人ID'
;
COMMENT
ON
TABLE
"public"
.
"center_cost_record"
IS
'中心成本操作日志'
;
-- lms_property
CREATE
TABLE
"public"
.
"lms_property"
(
"id"
int8
NOT
NULL
,
"name"
varchar
(
100
)
COLLATE
"pg_catalog"
.
"default"
NOT
NULL
,
"key"
varchar
(
100
)
COLLATE
"pg_catalog"
.
"default"
,
"code"
varchar
(
100
)
COLLATE
"pg_catalog"
.
"default"
NOT
NULL
,
"label"
varchar
(
100
)
COLLATE
"pg_catalog"
.
"default"
,
"type"
varchar
(
100
)
COLLATE
"pg_catalog"
.
"default"
,
"remark"
varchar
(
255
)
COLLATE
"pg_catalog"
.
"default"
,
"status"
int2
DEFAULT
1
,
"sort"
int4
,
"ctime"
timestamp
(
6
),
"company_id"
int8
,
"pid"
int8
)
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"id"
IS
'主键'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"name"
IS
'名称'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"key"
IS
'关键字'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"code"
IS
'编码值'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"label"
IS
'标签名'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"type"
IS
'分类'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"remark"
IS
'备注'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"status"
IS
'状态(0、禁用 1、正常)'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"sort"
IS
'排序'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"ctime"
IS
'创建时间'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"company_id"
IS
'公司编码'
;
COMMENT
ON
COLUMN
"public"
.
"lms_property"
.
"pid"
IS
'父id'
;
COMMENT
ON
TABLE
"public"
.
"lms_property"
IS
'字段数据对比表'
;
-- 三条数据
INSERT
INTO
"public"
.
"lms_property"
VALUES
(
1061920543645741058
,
'已消耗'
,
NULL
,
'consume'
,
NULL
,
'中心成本对比'
,
NULL
,
1
,
1
,
'2021-07-17 17:56:01.793'
,
NULL
,
0
);
INSERT
INTO
"public"
.
"lms_property"
VALUES
(
1061920543901593602
,
'总成本'
,
NULL
,
'totalCost'
,
NULL
,
'中心成本对比'
,
NULL
,
1
,
2
,
'2021-07-17 17:56:01.86'
,
NULL
,
0
);
INSERT
INTO
"public"
.
"lms_property"
VALUES
(
1061920543901593603
,
'备注'
,
NULL
,
'remark'
,
NULL
,
'中心成本对比'
,
NULL
,
1
,
3
,
'2021-07-17 17:56:01.86'
,
NULL
,
0
);
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