|
|
@ -228,3 +228,42 @@ CREATE TABLE `user` (
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户表';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='用户表';
|
|
|
|
|
|
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `revoke` (
|
|
|
|
|
|
|
|
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键',
|
|
|
|
|
|
|
|
`policy_no` varchar(50) NOT NULL DEFAULT '' COMMENT '保单号',
|
|
|
|
|
|
|
|
`bank_name` varchar(150) NOT NULL DEFAULT '' COMMENT '银行名称',
|
|
|
|
|
|
|
|
`account_name` varchar(150) NOT NULL DEFAULT '' COMMENT '退款账户',
|
|
|
|
|
|
|
|
`bank_card_num` varchar(150) NOT NULL DEFAULT '' COMMENT '收款账号',
|
|
|
|
|
|
|
|
`back_preminum` varchar(150) NOT NULL DEFAULT '' COMMENT '赔付金额',
|
|
|
|
|
|
|
|
`contact_name` varchar(150) NOT NULL DEFAULT '' COMMENT '联系人',
|
|
|
|
|
|
|
|
`contact_phone` varchar(150) NOT NULL DEFAULT '' COMMENT '联系电话',
|
|
|
|
|
|
|
|
`status` varchar(10) not null default '' comment '状态',
|
|
|
|
|
|
|
|
`file_list` text default null COMMENT '退保材料',
|
|
|
|
|
|
|
|
`reason` text default null COMMENT '原因材料',
|
|
|
|
|
|
|
|
`msg` text default null COMMENT '结果信息',
|
|
|
|
|
|
|
|
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
|
|
|
|
|
|
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
|
|
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
|
|
|
|
UNIQUE KEY `udx_policyno` (`policy_no`)
|
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='退保记录';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `claim` (
|
|
|
|
|
|
|
|
`id` int NOT NULL AUTO_INCREMENT COMMENT '主键',
|
|
|
|
|
|
|
|
`policy_no` varchar(50) NOT NULL DEFAULT '' COMMENT '保单号',
|
|
|
|
|
|
|
|
`bank_name` varchar(150) NOT NULL DEFAULT '' COMMENT '银行名称',
|
|
|
|
|
|
|
|
`account_name` varchar(150) NOT NULL DEFAULT '' COMMENT '退款账户',
|
|
|
|
|
|
|
|
`bank_card_num` varchar(150) NOT NULL DEFAULT '' COMMENT '收款账号',
|
|
|
|
|
|
|
|
`back_preminum` varchar(150) NOT NULL DEFAULT '' COMMENT '赔付金额',
|
|
|
|
|
|
|
|
`contact_name` varchar(150) NOT NULL DEFAULT '' COMMENT '联系人',
|
|
|
|
|
|
|
|
`contact_phone` varchar(150) NOT NULL DEFAULT '' COMMENT '联系电话',
|
|
|
|
|
|
|
|
`status` varchar(10) not null default '' comment '状态',
|
|
|
|
|
|
|
|
`file_list` text default null COMMENT '理赔材料',
|
|
|
|
|
|
|
|
`reason` text default null COMMENT '原因材料',
|
|
|
|
|
|
|
|
`msg` text default null COMMENT '结果信息',
|
|
|
|
|
|
|
|
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
|
|
|
|
|
|
|
|
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '最后更新时间',
|
|
|
|
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
|
|
|
|
UNIQUE KEY `udx_policyno` (`policy_no`)
|
|
|
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='理赔记录';
|