Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
ea8ea923
Commit
ea8ea923
authored
Sep 28, 2022
by
翁国栋
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql
parent
4f3e8e64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
sql/insure_policy.sql
+25
-0
No files found.
sql/insure_policy.sql
View file @
ea8ea923
...
...
@@ -198,3 +198,28 @@ ALTER TABLE `insure_policy`
ADD
COLUMN
`policy_pay_type`
int
(
11
)
NOT
NULL
DEFAULT
1
COMMENT
'1在线支付 2预付款 3线下支付'
AFTER
`create_time`
,
ADD
COLUMN
`pay_id`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'insure_pay表的id'
AFTER
`policy_pay_type`
;
ALTER
TABLE
`insure_user`
ADD
COLUMN
`product_plan_id`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'insure_product_plan表的Id'
AFTER
`remake`
;
CREATE
TABLE
`insure_plan`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'id'
,
`name`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'名称'
,
`plan_id`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'id,由保司提供'
,
`type`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'类型'
,
`create_time`
datetime
(
0
)
NULL
DEFAULT
NULL
ON
UPDATE
CURRENT_TIMESTAMP
(
0
)
COMMENT
'创建时间'
,
`delete_flag`
int
(
1
)
NULL
DEFAULT
0
COMMENT
'逻辑删除标记0.未删除 1.删除'
,
`type_name`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'类型名称'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
15
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
COMMENT
=
'投保方案'
ROW_FORMAT
=
Dynamic
;
CREATE
TABLE
`insure_product_plan`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
COMMENT
'ID'
,
`plan_json`
varchar
(
500
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'方案json'
,
`price`
double
(
10
,
2
)
NULL
DEFAULT
NULL
COMMENT
'单价'
,
`product_id`
int
(
11
)
NULL
DEFAULT
NULL
COMMENT
'insure_product的id'
,
`create_time`
datetime
(
0
)
NULL
DEFAULT
NULL
COMMENT
'创建时间'
,
`delete_flag`
int
(
1
)
NULL
DEFAULT
0
COMMENT
'是否删除 1已删除 0未删除'
,
`name`
varchar
(
255
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'方案组合后的名字'
,
PRIMARY
KEY
(
`id`
)
USING
BTREE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
8
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
COMMENT
=
'投保方案中间表'
ROW_FORMAT
=
Dynamic
;
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