Commit ea8ea923 by 翁国栋 Committed by 284718418@qq.com

sql

parent 4f3e8e64
...@@ -198,3 +198,28 @@ ALTER TABLE `insure_policy` ...@@ -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 `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`; 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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment