Przeglądaj źródła

1.商户付款联系人表

liaoxxxx 2 lat temu
rodzic
commit
6d49a57941

+ 2 - 0
doc/model/README.md

@@ -5,6 +5,8 @@
 
 ### [商户KYC信息表](./merchant_kyc.md)
 
+### [商户付款联系人表](./merchant_kyc.md)
+
 ### [商户外部账户模板表](./merchant_account_out_tpl_struct.md)
 
 ### [商户外部账户表](./merchant_account_out_struct.md)

+ 12 - 9
doc/model/bank.md

@@ -1,20 +1,23 @@
 ##  银行记录表
 
-> bank_code :银行代码,
+> bank_code :银行代码 如CCBC ICBC
 >
 > bank_name  : 银行名称,
+> 
+> swift_code : 由swift的组织提供的银行识别代码
 
 
 
 ```mysql
 CREATE TABLE `bank` (
-   `id` int NOT NULL AUTO_INCREMENT,
-   `bank_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
-   `bank_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '银行名称',
-   `state` int DEFAULT NULL,
-   `created_at` datetime DEFAULT NULL,
-   `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
-   `deleted_at` datetime DEFAULT NULL,
-   PRIMARY KEY (`id`) USING BTREE
+    `id` int NOT NULL AUTO_INCREMENT,
+    `bank_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '银行名称中文',
+    `bank_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '银行代码',
+    `state` int DEFAULT NULL,
+    `created_at` datetime DEFAULT NULL,
+    `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
+    `deleted_at` datetime DEFAULT NULL,
+    `swift_code` varchar(32) DEFAULT NULL COMMENT 'SWIFT  代码',
+    PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='币种';
 ```

+ 44 - 0
doc/model/merchant_contperson.md

@@ -0,0 +1,44 @@
+
+###商户付款联系人表 `merchant_contperson`
+
+>merchant_id :关联商户的id  [merchant.id](./merchant_struct.md)
+>
+>bank_name:银行名称,关联  [bank.bank_name](./bank.md)
+>
+>bank_code:银行代码,关联  [bank.bank_code](./bank.md)
+> 
+> bank_account_no :银行账户编号
+>
+>swift_code:银行的SWIFT代码,关联  [bank.swift_code](./bank.md)
+>
+>currency_type:支持的收款币种,关联  [currency.currency_type](./currency.md)
+> 
+>country & province & city:  账户所属的国家/地区关联 ;省/州 ;城市  [area.area_name](./area.md)
+>
+> postal_code:  账户所属地址的邮政编码  [area.postal_code](./area.md)
+
+
+
+```mysql
+CREATE TABLE `merchant_contperson` (
+    `id` int NOT NULL AUTO_INCREMENT,
+    `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
+    `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
+    `deleted_at` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
+    `merchant_id` int NOT NULL DEFAULT '0' COMMENT '商户ID',
+    `bank_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '银行名称',
+    `bank_code` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '银行代码',
+    `bank_account_no` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '银行账户编号',
+    `account_code` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '账户编号',
+    `account_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '账户名',
+    `country` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '账户所属的国家/地区',
+    `province` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '账户所属的省/州',
+    `city` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '账户所属的城市',
+    `address` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '详细地址',
+    `postal_code` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '邮政编码',
+    `swift_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT 'SWIFT CODE',
+    `bank_country` int DEFAULT NULL COMMENT '收款账户行的国家',
+    `currency_type` varchar(16) DEFAULT NULL COMMENT '支持的收款币种',
+    PRIMARY KEY (`id`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC COMMENT='商户付款联系人表';
+```

+ 21 - 1
doc/model/merchant_kyc.md

@@ -1,5 +1,5 @@
 
-###商户基本信息表 `merchant`
+###商户基本信息表 `merchant_kyc`
 
 
 > merchant_id: 关联商户的id  [merchant.id](./merchant_struct.md)
@@ -9,6 +9,14 @@
 > tel: 电话,
 > 
 > biz_license_code:  营业执照号,
+> 
+> biz_country: 注册地国家或地区, 多个国家的数组序列化的json字符,[1,2,3,...],关联[area.id](./area.md)
+> 
+> payment_country: 付款款国家及地区,多个国家的数组序列化的json字符,[1,2,3,...],关联[area.id](./area.md)
+> 
+> receiving_country:收款国家及地区,多个国家的数组序列化的json字符,[1,2,3,...],关联[area.id](./area.md)
+> 
+> id_card_img:身份证 正反面图片数组序列化的json字符   `["http:oss.com/dddw4adgr52.jpeg","http:oss.com/dk2ldd4etyadgr5.jpeg"],`
 
 
 
@@ -22,6 +30,18 @@ CREATE TABLE `merchant_kyc` (
     `company_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '企业名称',
     `tel` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '电话',
     `biz_license_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '营业执照号',
+    `website` varchar(255) DEFAULT NULL COMMENT '商户的官方站点',
+    `contacts` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '联系人',
+    `industry` varchar(32) DEFAULT NULL COMMENT '所属于的行业',
+    `service_desc` varchar(255) DEFAULT NULL COMMENT '提供的服务或业务',
+    `state` tinyint(1) DEFAULT NULL COMMENT '状态',
+    `biz_country` tinytext CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '企业注册国家或地区,多个,关联area的country',
+    `biz_license_img` varchar(255) DEFAULT NULL COMMENT '营业执照的图片地址',
+    `receiving_country` tinytext CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '收款国家及地区 ,多个',
+    `payment_country` tinytext CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '付款国家及地区 ,多个',
+    `id_card_img` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '法人或授权人的照片',
+    `identity_state` tinyint(1) DEFAULT NULL COMMENT '审核状态',
+    `amount_range` int DEFAULT NULL COMMENT '预计月均交易量  的id',
     PRIMARY KEY (`id`) USING BTREE
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC COMMENT='商户基本信息表';
 ```