From 29562a5183be6510352697a2fedaaeb0a17f03b3 Mon Sep 17 00:00:00 2001 From: Hankin Date: Wed, 4 Jun 2025 14:25:53 +0800 Subject: [PATCH] commission contract --- 1748504573_create_asign_enterprise.up.sql | 16 ++++++++++++++++ 1748588826_create_commission_contract.up.sql | 16 ++++++++++++++++ 1748589969_create_commission_signer.up.sql | 17 +++++++++++++++++ ...765_create_commission_contract_info.up.sql | 19 +++++++++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 1748504573_create_asign_enterprise.up.sql create mode 100644 1748588826_create_commission_contract.up.sql create mode 100644 1748589969_create_commission_signer.up.sql create mode 100644 1748918765_create_commission_contract_info.up.sql diff --git a/1748504573_create_asign_enterprise.up.sql b/1748504573_create_asign_enterprise.up.sql new file mode 100644 index 0000000..cd778cb --- /dev/null +++ b/1748504573_create_asign_enterprise.up.sql @@ -0,0 +1,16 @@ +CREATE TABLE `ufutx_asign_enterprise` ( + `id` BIGINT NOT NULL AUTO_INCREMENT , + `user_id` integer NOT NULL COMMENT "用户id", + `account` varchar(100) NOT NULL comment "账号", + `company_name` varchar(191) default null comment "公司名", + `company_address` varchar(191) default null comment "公司地址", + `credit_code` varchar(50) default NULL comment "企业证件号", + `credit_type` tinyInt(4) UNSIGNED default 1 comment "企业证件类型,同爱签类型", + `name` varchar(191) default null comment "法人姓名", + `id_card` varchar(20) default NULL comment "法人身份证、台胞证、港澳通行证等证件号", + `id_card_type` tinyInt(4) UNSIGNED default 1 comment "证件类型,同爱签类型", + `mobile` varchar(20) default null comment "手机号", + `created_at` TIMESTAMP NULL DEFAULT NULL , + `updated_at` TIMESTAMP NULL DEFAULT NULL , + PRIMARY KEY (`id`) +) ENGINE = InnoDB COMMENT = '爱签企业账号'; \ No newline at end of file diff --git a/1748588826_create_commission_contract.up.sql b/1748588826_create_commission_contract.up.sql new file mode 100644 index 0000000..c394627 --- /dev/null +++ b/1748588826_create_commission_contract.up.sql @@ -0,0 +1,16 @@ +CREATE TABLE `ufutx_commission_contract`( + `id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, + `user_id` integer NOT NULL COMMENT "用户id", + `contract_no` varchar(191) NOT NULL comment "合同ID,合同唯一编号", + `contract_name` varchar(191) NOT NULL comment "合同名称", + `validity_date` timestamp null default null comment "合同有效截止日期", + `templates` text default null comment "合同模板列表", + `notify_url` varchar(191) default NULL comment "合同签署完成后status=2回调通知地址", + `callback_url` varchar(191) default NULL comment "合同状态status=3:过期、4:拒签、-3:失败回调通知地址", + `user_notify_url` varchar(191) default NULL comment "某个用户签署完成signStatus=2回调地址", + `redirect_url`varchar(191) default NULL comment "合同签署完成后同步回调地址", + `status` tinyInt(4) default 0 comment "合同状态", + `preview_url` varchar(191) NOT NULL comment "预览链接", + `created_at` timestamp null default null, + `updated_at` timestamp null default null +) ENGINE = InnoDB COMMENT = '佣金合同'; \ No newline at end of file diff --git a/1748589969_create_commission_signer.up.sql b/1748589969_create_commission_signer.up.sql new file mode 100644 index 0000000..7576c54 --- /dev/null +++ b/1748589969_create_commission_signer.up.sql @@ -0,0 +1,17 @@ +CREATE TABLE `ufutx_commission_signer` ( + `id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) NOT NULL comment "用户id", + `contract_no` varchar(191) NOT NULL comment "合同ID,合同唯一编号", + `account` varchar(191) NOT NULL comment "用户唯一识别码", + `sign_type` tinyInt(4) NOT NULL comment "签约方式 2:无感知,3:有感知", + `validate_type` tinyInt(4) NOT NULL comment "签署方式", + `sign_strategy_list` text NOT NULL comment "签章策略", + `status` tinyInt(4) default 1 comment "签署状态", + `sign_finished_time` timestamp null default null comment "签约时间", + `company_status` tinyInt(4) default 1 comment "公司签署状态", + `company_sign_finished_time` timestamp null default null comment "公司签约时间", + `user_sign_url` varchar(191) NOT NULL comment "用户签约链接", + `company_sign_url` varchar(191) NOT NULL comment "公司签约链接", + `created_at` timestamp null default null, + `updated_at` timestamp null default null +) ENGINE = InnoDB COMMENT = '佣金合同签署方'; \ No newline at end of file diff --git a/1748918765_create_commission_contract_info.up.sql b/1748918765_create_commission_contract_info.up.sql new file mode 100644 index 0000000..49e06af --- /dev/null +++ b/1748918765_create_commission_contract_info.up.sql @@ -0,0 +1,19 @@ +CREATE TABLE `ufutx_commission_contract_info` ( + `id` bigint(20) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) NOT NULL comment "用户id", + `type` tinyInt NOT NULL comment "类型, 1:个人, 2:公司", + `name` varchar(191) NOT NULL comment "姓名/法定代表人", + `card_num` varchar(191) NOT NULL comment "身份证号/法定代表人身份证号", + `address` varchar(191) NOT NULL COMMENT "通讯地址", + `mobile` varchar(20) NOT NULL comment "手机号", + `company_name` varchar(191) default NULL comment "公司名称", + `credit_code` varchar(100) default null comment "统一社会信用代码", + `company_address` varchar(191) default NULL comment "公司地址", + `bank_name` varchar(100) NOT NULL COMMENT "开户名称", + `bank_address` varchar(199) NOT null comment "开户行", + `bank_card_num` varchar(100) NOT NULL comment "银行卡号", + `wechat` varchar(100) NOT NULL comment "微信号", + `email` varchar(100) NOT NULL comment "邮箱", + `created_at` timestamp null default null, + `updated_at` timestamp null default null +) ENGINE = InnoDB COMMENT = '佣金合同签署方'; \ No newline at end of file