
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for assure
-- ----------------------------
DROP TABLE IF EXISTS `assure`;
CREATE TABLE `assure`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NULL DEFAULT 0 COMMENT '流程实例ID',
  `financing_id` int(11) NULL DEFAULT NULL COMMENT '融资ID',
  `assure_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '承兑担保编号',
  `assure_end_time` timestamp NULL DEFAULT NULL COMMENT '签约日期',
  `assure_amount` decimal(10, 2) UNSIGNED NULL DEFAULT 0.00 COMMENT '担保金额',
  `express_id` int(11) NULL DEFAULT NULL COMMENT '担保企业ID',
  `express_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '担保企业名称',
  `product_assure_status` tinyint(4) NULL DEFAULT NULL COMMENT '货物反担保状态 0未确认，1已确认',
  `buyer_id` int(11) NULL DEFAULT NULL COMMENT '被担保企业ID',
  `buyer_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '被担保企业名称',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '担保' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of assure
-- ----------------------------
INSERT INTO `assure` VALUES (1, '2023-08-15 11:33:09', NULL, 3, 1, 8, 1, '6713333099', '2024-03-15 00:00:00', 137849.74, 21, '中邮物流', 1, 58, '振友电器销售有限公司');

-- ----------------------------
-- Table structure for attachments
-- ----------------------------
DROP TABLE IF EXISTS `attachments`;
CREATE TABLE `attachments`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` json NULL,
  `type` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `path` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of attachments
-- ----------------------------

-- ----------------------------
-- Table structure for bank_acceptance_bill
-- ----------------------------
DROP TABLE IF EXISTS `bank_acceptance_bill`;
CREATE TABLE `bank_acceptance_bill`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID',
  `invoice_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '汇票编号',
  `invoice_time` timestamp NULL DEFAULT NULL COMMENT '出票日期',
  `invoice_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '出票状态',
  `invoice_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '出票金额',
  `invoice_fee` decimal(10, 2) NULL DEFAULT NULL COMMENT '手续费',
  `seller_id` int(11) NULL DEFAULT NULL COMMENT '收款人ID',
  `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '收款人',
  `bank_id` int(11) NULL DEFAULT NULL COMMENT '承兑银行ID',
  `bank_name` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '承兑银行',
  `buyer_id` int(11) NULL DEFAULT NULL COMMENT '出票人ID',
  `buyer_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出票人',
  `financing_id` int(11) NULL DEFAULT NULL COMMENT '融资ID',
  `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '银行承兑汇票' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of bank_acceptance_bill
-- ----------------------------
INSERT INTO `bank_acceptance_bill` VALUES (1, '2023-08-15 11:38:40', NULL, 3, 1, 8, '19988295', '2023-09-15 00:00:00', 0, 196928.20, 984.64, 59, '格力电器集团公司', 15, '平安银行', 58, '振友电器销售有限公司', 1, 1);

-- ----------------------------
-- Table structure for classes
-- ----------------------------
DROP TABLE IF EXISTS `classes`;
CREATE TABLE `classes`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '名字',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  `data` json NULL,
  `school_id` int(11) NOT NULL DEFAULT 0 COMMENT '学校id',
  `teacher_id` int(11) NOT NULL DEFAULT 0 COMMENT '教师id',
  `classes_id` bigint(20) NULL DEFAULT NULL COMMENT '智云班级id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `fk_classes_schools1_idx`(`school_id`) USING BTREE,
  INDEX `fk_classes_users1_idx`(`teacher_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 387 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '班级表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of classes
-- ----------------------------
INSERT INTO `classes` VALUES (372, '天择演示7班', '2023-04-07 11:37:09', '2023-04-07 11:37:09', NULL, 1, 0, 349);
INSERT INTO `classes` VALUES (373, '金融A班', '2023-04-07 11:39:42', '2023-04-07 11:39:42', NULL, 53, 505, 379);
INSERT INTO `classes` VALUES (374, '天择演示1班', '2023-04-07 11:42:25', '2023-08-15 16:51:00', NULL, 1, 36, 20);
INSERT INTO `classes` VALUES (375, '天择演示6班', '2023-04-07 11:49:20', '2023-08-15 16:51:00', NULL, 1, 36, 25);
INSERT INTO `classes` VALUES (376, '天择演示2班', '2023-04-07 11:50:48', '2023-08-15 16:51:00', NULL, 1, 36, 21);
INSERT INTO `classes` VALUES (377, '天择演示3班', '2023-04-07 11:50:48', '2023-08-15 16:51:00', NULL, 1, 36, 22);
INSERT INTO `classes` VALUES (378, '天择演示4班', '2023-04-07 11:50:48', '2023-08-15 16:51:00', NULL, 1, 36, 23);
INSERT INTO `classes` VALUES (379, '天择演示5班', '2023-04-07 11:50:48', '2023-08-15 16:51:00', NULL, 1, 36, 24);
INSERT INTO `classes` VALUES (380, '怡亚通试用1班', '2023-06-07 09:54:33', '2023-06-07 09:55:18', NULL, 1, 36, 38);
INSERT INTO `classes` VALUES (381, '怡亚通试用2班', '2023-06-07 09:54:33', '2023-06-07 09:55:18', NULL, 1, 36, 39);
INSERT INTO `classes` VALUES (382, '内部体验1班', '2023-06-07 09:54:33', '2023-06-07 09:55:18', NULL, 1, 36, 43);
INSERT INTO `classes` VALUES (383, '内部体验2班', '2023-06-07 09:54:33', '2023-06-07 09:55:18', NULL, 1, 36, 44);
INSERT INTO `classes` VALUES (384, '内部体验3班', '2023-06-07 09:54:33', '2023-06-07 09:55:18', NULL, 1, 36, 45);
INSERT INTO `classes` VALUES (385, '金融学1班', '2023-06-07 09:54:33', '2023-06-07 09:55:18', NULL, 1, 36, 65);
INSERT INTO `classes` VALUES (386, '财商一班', '2023-06-07 09:54:33', '2023-06-07 09:55:18', NULL, 1, 36, 183);

-- ----------------------------
-- Table structure for configs
-- ----------------------------
DROP TABLE IF EXISTS `configs`;
CREATE TABLE `configs`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `user_id` int(11) NOT NULL COMMENT '用户ID',
  `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '配置名',
  `value` json NULL COMMENT '配置值',
  `flow_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '业务流程评分%',
  `raise_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '资产增长率评分%',
  `report_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '实训报告评分%',
  `duration_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '实训时长评分%',
  `operator_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '流程准确性维度%',
  `raise_set_data` json NULL COMMENT '增长率评分设置',
  `duration_set_data` json NULL COMMENT '实训时长打分设置',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `fk_configs_users1_idx`(`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of configs
-- ----------------------------
INSERT INTO `configs` VALUES (1, '2023-06-09 11:07:57', NULL, 0, 'default.score.set', NULL, 40.00, 5.00, 10.00, 5.00, 40.00, '[{\"max\": 1000000, \"min\": 20, \"scores\": 100}, {\"max\": 20, \"min\": 10, \"scores\": 90}, {\"max\": 10, \"min\": 0, \"scores\": 70}, {\"max\": 0, \"min\": -100000, \"scores\": 60}]', '[{\"max\": 2, \"min\": 0, \"scores\": 100}, {\"max\": 10, \"min\": 2, \"scores\": 90}, {\"max\": 48, \"min\": 10, \"scores\": 70}, {\"max\": 100000, \"min\": 48, \"scores\": 60}]');

-- ----------------------------
-- Table structure for contracts_factoring
-- ----------------------------
DROP TABLE IF EXISTS `contracts_factoring`;
CREATE TABLE `contracts_factoring`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID',
  `bl_contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '保理合同编号',
  `bl_contract_time` timestamp NULL DEFAULT NULL COMMENT '合同签订日期',
  `bl_contract_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '合同状态',
  `buyer_id` int(11) NULL DEFAULT NULL COMMENT '买方ID',
  `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买方',
  `seller_id` int(11) NULL DEFAULT NULL COMMENT '卖方ID',
  `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卖方',
  `bank_id` int(11) NULL DEFAULT NULL COMMENT '银行ID',
  `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '银行',
  `accept_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '受理单号',
  `buyer_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '买方是否确认',
  `seller_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '卖方是否确认',
  `bank_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '银行是否确认',
  `apply_rate` decimal(10, 2) NULL DEFAULT NULL,
  `supply_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '反向保理利率',
  `contract_account` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '合同账户',
  `apply_poundage_rate` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '手续费率',
  `bl_contract_file` json NULL COMMENT '合同文件',
  `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID',
  `accept_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '核定保理额度',
  `bl_contract_end_time` timestamp NULL DEFAULT NULL COMMENT '到期日',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '保理合同' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of contracts_factoring
-- ----------------------------
INSERT INTO `contracts_factoring` VALUES (1, '2023-08-15 15:13:45', '2023-08-15 15:14:02', 5, 4, 12, '20230815731146', '2023-08-18 00:00:00', 2, 41, '太平鸟服饰有限公司', 40, '兰辉服装有限责任公司', 11, '华夏银行', '7232752056', NULL, 1, 1, 7.02, NULL, '622712345678', '0.5%', '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"2082003126\", \"buyer_id\": 41, \"can_levy\": false, \"accept_no\": \"7232752056\", \"bank_name\": \"华夏银行\", \"seller_id\": 40, \"send_time\": \"2023-08-15 15:06:02\", \"apply_rate\": 7.02, \"buyer_name\": \"太平鸟服饰有限公司\", \"can_commit\": false, \"created_at\": \"2023-08-15 15:13:45\", \"updated_at\": \"2023-08-15 15:13:48\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/40\", \"bail_status\": 0, \"contract_id\": \"3\", \"contract_no\": \"2023081500005\", \"instance_id\": 12, \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"seller_name\": \"兰辉服装有限责任公司\", \"yfzk_amount\": 90000, \"apply_amount\": 80000, \"apply_status\": 1, \"bank_confirm\": 1, \"accept_amount\": 80000, \"commit_status\": 0, \"bl_contract_no\": \"20230815731146\", \"examination_id\": 5, \"financing_type\": 4, \"bank_id_fill_bl\": 11, \"contract_amount\": 91074, \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"\", \"bl_contract_time\": \"2023-08-18 00:00:00\", \"contract_account\": \"622712345678\", \"financing_months\": 3, \"financing_status\": 0, \"max_apply_amount\": 81000, \"repayment_amount\": 0, \"bank_name_fill_bl\": \"华夏银行\", \"seller_id_fill_bl\": 40, \"apply_rate_fill_bl\": \"7.02%\", \"bl_contract_status\": 1, \"financing_end_time\": \"2023-11-30 00:00:00\", \"seller_corporation\": \"曹武\", \"apply_poundage_rate\": \"0.5%\", \"examination_inst_id\": 12, \"seller_name_fill_bl\": \"兰辉服装有限责任公司\", \"bank_address_fill_bl\": \"深圳市南山区沙河路152号\", \"financing_start_time\": \"2023-08-30 00:00:00\", \"accept_amount_fill_bl\": \"80000\", \"seller_address_fill_bl\": \"深圳市宝安区松岗路521号\", \"bank_corporation_fill_bl\": \"关文洁\", \"seller_corporation_fill_bl\": \"曹武\", \"accept_amount_capital_fill_bl\": \"捌万元整\"}', 3, 80000.00, NULL);

-- ----------------------------
-- Table structure for contracts_pledge
-- ----------------------------
DROP TABLE IF EXISTS `contracts_pledge`;
CREATE TABLE `contracts_pledge`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID',
  `zy_contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '质押合同编号',
  `zy_contract_time` timestamp NULL DEFAULT NULL COMMENT '到期日',
  `zy_contract_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '合同状态 ',
  `buyer_id` int(11) NULL DEFAULT NULL COMMENT '次债务人ID',
  `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '次债务人',
  `seller_id` int(11) NULL DEFAULT NULL COMMENT '出质人ID',
  `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出质人',
  `bank_id` int(11) NULL DEFAULT NULL COMMENT '质权人ID',
  `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '质权人',
  `buyer_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '买方是否确认',
  `seller_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '卖方是否确认',
  `bank_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '银行是否确认',
  `yszk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应收账款金额',
  `financing_id` int(11) NULL DEFAULT NULL COMMENT '贷款ID',
  `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID',
  `seller_zy_contract_file` json NULL COMMENT '质押合同文件',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '质押合同' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of contracts_pledge
-- ----------------------------
INSERT INTO `contracts_pledge` VALUES (1, '2023-08-15 14:52:26', '2023-08-15 15:00:02', 4, 2, 11, '7360758310', '2023-11-24 14:29:44', 5, 63, '大众汽车制造有限公司', 55, '鞍山钢铁有限责任公司', 14, '浦发银行', 1, 1, 1, 300000.00, 3, 2, '{\"id\": 1, \"qrh\": \"OK\", \"page\": 1, \"limit\": 10, \"tails\": {}, \"others\": \"无\", \"bank_id\": 14, \"buyer_id\": 63, \"pay_time\": \"2023-11-24 14:29:44\", \"pay_ways\": \"转账\", \"accept_no\": \"1911454217\", \"bank_name\": \"浦发银行\", \"seller_id\": 55, \"bank_id_ok\": 14, \"buyer_name\": \"大众汽车制造有限公司\", \"other_line\": \"已履行\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/14\", \"accept_time\": \"2023-08-17 00:00:00\", \"buyer_id_ok\": 63, \"contract_id\": 2, \"contract_no\": \"2023081500004\", \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/55\", \"seller_name\": \"鞍山钢铁有限责任公司\", \"yszk_amount\": 300000, \"bingfang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/63\", \"financing_id\": 3, \"seller_id_ok\": 55, \"zy_contract_no\": \"7360758310\", \"zy_bank_fill_zy\": \"浦发银行\", \"zy_bank_fill_qrh\": \"浦发银行\", \"zy_contract_time\": \"2023-11-24 00:00:00\", \"bank_name_fill_zy\": \"浦发银行\", \"bank_name_fill_qrh\": \"浦发银行\", \"invoice_no_fill_zy\": \"12345678\", \"zy_account_fill_zy\": \"622712345678\", \"accept_time_fill_zy\": \"2023-08-20 00:00:00\", \"buyer_name_fill_qrh\": \"大众汽车制造有限公司\", \"contract_no_fill_zy\": \"2023081500004\", \"seller_name_fill_zy\": \"鞍山钢铁有限责任公司\", \"yszk_amount_fill_zy\": \"300000\", \"zy_account_fill_qrh\": \"622712345678\", \"accept_time_fill_qrh\": \"2023-08-21 00:00:00\", \"bank_address_fill_zy\": \"上海市浦东新区花木路59号\", \"contract_no_fill_qrh\": \"2023081500004\", \"financing_start_time\": \"2023-08-24 00:00:00\", \"seller_name_fill_qrh\": \"鞍山钢铁有限责任公司\", \"yszk_amount_fill_qrh\": \"300000\", \"bank_telephone_fill_zy\": \"021-52036971\", \"buyer_address_fill_qrh\": \"上海市嘉定区杭海路28号\", \"seller_address_fill_zy\": \"上海市金山区长宁路31号\", \"zy_seller_name_fill_zy\": \"鞍山钢铁有限责任公司\", \"buyer_name_yszk_fill_zy\": \"大众汽车制造有限公司\", \"zy_seller_name_fill_qrh\": \"鞍山钢铁有限责任公司\", \"bank_corporation_fill_zy\": \"潘卫\", \"buyer_telephone_fill_qrh\": \"021-84120321\", \"seller_telephone_fill_zy\": \"021-20687459\", \"zy_contract_time_fill_zy\": \"2023-11-24 00:00:00\", \"zy_contract_time_fill_qrh\": \"2023-11-24 00:00:00\", \"buyer_corporation_fill_qrh\": \"黄林\", \"seller_corporation_fill_zy\": \"吴林\"}');

-- ----------------------------
-- Table structure for contracts_products
-- ----------------------------
DROP TABLE IF EXISTS `contracts_products`;
CREATE TABLE `contracts_products`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID',
  `protocol_id` int(11) NULL DEFAULT NULL COMMENT '协议ID',
  `product_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '产品编号',
  `product_id` int(11) NULL DEFAULT NULL COMMENT '产品ID',
  `nums` int(11) NULL DEFAULT NULL COMMENT '数量',
  `price` decimal(10, 2) NULL DEFAULT NULL COMMENT '总价格',
  `pickup_status` tinyint(4) NULL DEFAULT NULL COMMENT '提货状态 1已提货',
  `pickup_product_id` int(11) NULL DEFAULT NULL COMMENT '提货ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 12 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '合同产品' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of contracts_products
-- ----------------------------
INSERT INTO `contracts_products` VALUES (1, 1, NULL, '100011', 20, 100, 50583.00, 1, 1, '2023-08-15 11:25:54', NULL);
INSERT INTO `contracts_products` VALUES (2, 1, NULL, '100012', 21, 100, 230743.00, 1, 2, '2023-08-15 11:25:54', NULL);
INSERT INTO `contracts_products` VALUES (3, NULL, 2, '000001', 4, 100, 37351.00, 1, 3, '2023-08-15 13:54:33', NULL);
INSERT INTO `contracts_products` VALUES (4, NULL, 2, '100002', 11, 100, 107330.00, 1, 3, '2023-08-15 13:54:33', NULL);
INSERT INTO `contracts_products` VALUES (5, 2, NULL, '100013', 22, 100, 318826.00, 0, NULL, '2023-08-15 14:30:42', NULL);
INSERT INTO `contracts_products` VALUES (6, 3, NULL, '100008', 17, 100, 59675.00, 0, NULL, '2023-08-15 15:05:28', NULL);
INSERT INTO `contracts_products` VALUES (7, 3, NULL, '100009', 18, 100, 31399.00, 0, NULL, '2023-08-15 15:05:28', NULL);
INSERT INTO `contracts_products` VALUES (8, 4, NULL, '100004', 13, 100, 114971.00, 0, NULL, '2023-08-15 15:54:48', NULL);
INSERT INTO `contracts_products` VALUES (9, 4, NULL, '100005', 14, 100, 20033.00, 0, NULL, '2023-08-15 15:54:48', NULL);
INSERT INTO `contracts_products` VALUES (10, 5, NULL, '100002', 11, 100, 107330.00, 0, NULL, '2023-08-15 16:39:46', NULL);
INSERT INTO `contracts_products` VALUES (11, 5, NULL, '000001', 4, 100, 37351.00, 0, NULL, '2023-08-15 16:39:46', NULL);

-- ----------------------------
-- Table structure for contracts_purchase_sales
-- ----------------------------
DROP TABLE IF EXISTS `contracts_purchase_sales`;
CREATE TABLE `contracts_purchase_sales`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NULL DEFAULT 0 COMMENT 'examination_instances id',
  `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '合同编号',
  `contract_time` timestamp NULL DEFAULT NULL COMMENT '签约日期',
  `contract_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '合同状态 0未确认 1买方确认 2卖方确认',
  `buyer_id` int(11) NULL DEFAULT NULL COMMENT '买方ID',
  `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买方',
  `seller_id` int(11) NULL DEFAULT NULL COMMENT '卖方ID',
  `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卖方',
  `bank_id` int(11) NULL DEFAULT NULL COMMENT '银行ID',
  `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '银行',
  `express_id` int(11) NULL DEFAULT NULL COMMENT '物流ID',
  `express_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物流',
  `buyer_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '买方是否确认',
  `seller_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '卖方是否确认',
  `bank_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '银行是否确认',
  `express_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '物流是否确认',
  `contract_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '合同金额',
  `pay_time` timestamp NULL DEFAULT NULL COMMENT '付款日期',
  `total_cost_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '货物成本总价',
  `total_sell_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '货物总售价',
  `examination_inst_id` int(11) NULL DEFAULT NULL COMMENT 'user_examination id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '卖方、买方签订购销合同' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of contracts_purchase_sales
-- ----------------------------
INSERT INTO `contracts_purchase_sales` VALUES (1, '2023-08-15 11:25:54', '2023-08-15 11:26:20', 3, 1, 8, '2023081500003', '2023-08-15 11:25:22', 2, 58, '振友电器销售有限公司', 59, '格力电器集团公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 281326.00, '2023-09-15 11:25:22', 260000.00, 281326.00, 8);
INSERT INTO `contracts_purchase_sales` VALUES (2, '2023-08-15 14:30:42', '2023-08-15 14:31:08', 4, 2, 11, '2023081500004', '2023-08-15 14:29:44', 2, 63, '大众汽车制造有限公司', 55, '鞍山钢铁有限责任公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 318826.00, '2023-11-24 14:29:44', 350000.00, 318826.00, 11);
INSERT INTO `contracts_purchase_sales` VALUES (3, '2023-08-15 15:05:28', '2023-08-15 15:05:55', 5, 4, 12, '2023081500005', '2023-08-15 15:04:50', 2, 41, '太平鸟服饰有限公司', 40, '兰辉服装有限责任公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 91074.00, '2023-11-30 15:04:50', 80000.00, 91074.00, 12);
INSERT INTO `contracts_purchase_sales` VALUES (4, '2023-08-15 15:54:48', '2023-08-15 15:55:19', 8, 5, 15, '2023081500006', '2023-08-15 15:53:59', 2, 27, '恒达集团有限公司', 26, '安科消防有限公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 135004.00, '2023-11-30 15:53:59', 115000.00, 135004.00, 15);
INSERT INTO `contracts_purchase_sales` VALUES (5, '2023-08-15 16:39:46', '2023-08-15 16:40:08', 8, 5, 18, '2023081500007', '2023-08-15 16:39:15', 2, 25, '晶东电子城', 24, '新力电子有限公司', NULL, NULL, NULL, NULL, 1, 1, NULL, NULL, 144681.00, '2023-11-25 16:39:15', 130000.00, 144681.00, 18);

-- ----------------------------
-- Table structure for examination_classes
-- ----------------------------
DROP TABLE IF EXISTS `examination_classes`;
CREATE TABLE `examination_classes`  (
  `examination_id` bigint(20) NOT NULL COMMENT '实训班级ID',
  `class_id` bigint(20) NOT NULL COMMENT '班级ID',
  `status` tinyint(3) UNSIGNED NULL DEFAULT 0,
  `data` json NULL,
  PRIMARY KEY (`examination_id`, `class_id`) USING BTREE,
  INDEX `fk_classes_has_examinations_examinations1_idx`(`examination_id`) USING BTREE,
  INDEX `fk_classes_has_examinations_classes1_idx`(`class_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of examination_classes
-- ----------------------------
INSERT INTO `examination_classes` VALUES (8, 25, 0, NULL);

-- ----------------------------
-- Table structure for examination_instances
-- ----------------------------
DROP TABLE IF EXISTS `examination_instances`;
CREATE TABLE `examination_instances`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `data` json NULL,
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `finish_step` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '已完成步骤',
  `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '1:已提交实训；',
  `team_id` int(11) NULL DEFAULT 0 COMMENT '团队ID',
  `init_balance` decimal(65, 2) NULL DEFAULT 0.00 COMMENT '初始资金',
  `balance` decimal(65, 2) NULL DEFAULT 0.00 COMMENT '可用资金',
  `product_assets` decimal(65, 2) NULL DEFAULT 0.00 COMMENT '存货价值',
  `raise_rate` decimal(12, 2) NULL DEFAULT 0.00 COMMENT '资产增长率',
  `raise_orders` int(11) NULL DEFAULT 0 COMMENT '资产增长率排名',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of examination_instances
-- ----------------------------
INSERT INTO `examination_instances` VALUES (1, '2023-08-15 11:02:57', '2023-08-15 11:02:57', NULL, 1, 3, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (2, '2023-08-15 11:03:04', '2023-08-15 11:03:04', NULL, 3, 1, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (3, '2023-08-15 11:03:06', '2023-08-15 11:03:06', NULL, 4, 2, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (4, '2023-08-15 11:03:08', '2023-08-15 11:03:08', NULL, 5, 4, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (5, '2023-08-15 11:03:10', '2023-08-15 11:03:10', NULL, 6, 5, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (6, '2023-08-15 11:06:02', '2023-08-15 11:06:02', NULL, 1, 3, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (7, '2023-08-15 11:06:10', '2023-08-15 11:06:10', NULL, 4, 2, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (8, '2023-08-15 11:22:09', '2023-08-15 13:48:23', NULL, 3, 1, 24, 0, 0, 1000000.00, 710599.94, 281326.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (9, '2023-08-15 13:51:29', '2023-08-15 14:22:10', NULL, 1, 3, 16, 0, 0, 1000000.00, 868285.00, 144681.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (10, '2023-08-15 14:22:33', '2023-08-15 14:22:33', NULL, 3, 1, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (11, '2023-08-15 14:22:36', '2023-08-15 15:02:53', NULL, 4, 2, 14, 0, 0, 1000000.00, 964518.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (12, '2023-08-15 14:22:39', '2023-08-15 15:30:11', NULL, 5, 4, 15, 0, 0, 1000000.00, 1009270.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (13, '2023-08-15 14:22:43', '2023-08-15 14:22:43', NULL, 6, 5, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (14, '2023-08-15 15:41:38', '2023-08-15 15:41:38', NULL, 1, 3, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (15, '2023-08-15 15:53:07', '2023-08-15 16:52:59', NULL, 8, 5, 7, 0, 0, 1000000.00, 885000.00, 0.00, -12.00, NULL);
INSERT INTO `examination_instances` VALUES (16, '2023-08-15 15:53:17', '2023-08-15 15:53:17', NULL, 4, 2, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (17, '2023-08-15 16:08:18', '2023-08-15 16:08:18', NULL, 5, 4, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (18, '2023-08-15 16:39:12', '2023-08-15 16:41:07', NULL, 8, 5, 4, 1, 0, 1000000.00, 870000.00, 0.00, -13.00, NULL);
INSERT INTO `examination_instances` VALUES (19, '2023-08-15 16:43:21', NULL, NULL, 8, 5, 0, 1, 0, 1000000.00, 1000000.00, 0.00, 0.00, 0);
INSERT INTO `examination_instances` VALUES (20, '2023-08-15 16:43:21', NULL, NULL, 8, 5, 0, 1, 0, 1000000.00, 1000000.00, 0.00, 0.00, 0);
INSERT INTO `examination_instances` VALUES (21, '2023-08-15 17:32:25', '2023-08-15 17:32:25', NULL, 3, 1, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (22, '2023-08-15 17:33:12', '2023-08-15 17:33:12', NULL, 5, 4, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);
INSERT INTO `examination_instances` VALUES (23, '2023-08-15 17:33:14', '2023-08-15 17:33:14', NULL, 6, 5, 0, 0, 0, 1000000.00, 1000000.00, 0.00, NULL, NULL);

-- ----------------------------
-- Table structure for examinations
-- ----------------------------
DROP TABLE IF EXISTS `examinations`;
CREATE TABLE `examinations`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted_at` timestamp NULL DEFAULT NULL COMMENT '删除时间',
  `data` json NULL,
  `name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实训名称',
  `flow_id` bigint(20) NULL DEFAULT NULL COMMENT '业务流程Id',
  `mode` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '实训模式 0 个人 1 团队',
  `start_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '实训开始时间',
  `end_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '实训结束时间',
  `teacher_id` bigint(20) NULL DEFAULT NULL COMMENT '教师id',
  `status` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '实训状态 0 未开始 1 进行中 2 已结束',
  `user_num` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '参加实训人数',
  `type` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '实训类型 0 练习模式 1 实训模式',
  `scores_status` tinyint(3) UNSIGNED NULL DEFAULT NULL COMMENT '实训评分 0 待评分 1 已评分',
  `is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0 未删除 1删除',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `name_UNIQUE`(`name`, `deleted_at`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE,
  INDEX `users_idx`(`teacher_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of examinations
-- ----------------------------
INSERT INTO `examinations` VALUES (1, NULL, NULL, NULL, NULL, '存货质押融资流程-个人练习', 3, 0, '2023-08-15 11:02:57', '2033-08-12 11:02:57', 0, 1, 0, 0, 0, 0);
INSERT INTO `examinations` VALUES (2, '2023-08-15 11:03:00', '2023-08-15 11:03:00', NULL, NULL, '存货质押融资流程-团队练习', 3, 1, '2023-08-15 11:03:00', '2033-08-12 11:03:00', 0, 1, 0, 0, 0, 0);
INSERT INTO `examinations` VALUES (3, NULL, NULL, NULL, NULL, '保兑仓融资-个人练习', 1, 0, '2023-08-15 11:03:04', '2033-08-12 11:03:04', 0, 1, 0, 0, 0, 0);
INSERT INTO `examinations` VALUES (4, NULL, NULL, NULL, NULL, '应收账款质押融资-个人练习', 2, 0, '2023-08-15 11:03:06', '2033-08-12 11:03:06', 0, 1, 0, 0, 0, 0);
INSERT INTO `examinations` VALUES (5, NULL, NULL, NULL, NULL, '正向保理-个人练习', 4, 0, '2023-08-15 11:03:08', '2033-08-12 11:03:08', 0, 1, 0, 0, 0, 0);
INSERT INTO `examinations` VALUES (6, NULL, NULL, NULL, NULL, '反向保理-个人练习', 5, 0, '2023-08-15 11:03:10', '2033-08-12 11:03:10', 0, 1, 0, 0, 0, 0);
INSERT INTO `examinations` VALUES (7, '2023-08-15 15:32:31', '2023-08-15 15:32:31', NULL, NULL, '保兑仓融资-团队练习', 1, 1, '2023-08-15 15:32:31', '2033-08-12 15:32:31', 0, 1, 0, 0, 0, 0);
INSERT INTO `examinations` VALUES (8, '2023-08-15 15:41:18', '2023-08-15 16:53:00', NULL, NULL, '反向保理', 5, 0, '2023-08-15 15:48:00', '2023-08-15 00:00:00', 36, 2, 0, 1, 1, 0);

-- ----------------------------
-- Table structure for financings
-- ----------------------------
DROP TABLE IF EXISTS `financings`;
CREATE TABLE `financings`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID',
  `apply_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '融资申请编号',
  `apply_status` tinyint(4) NULL DEFAULT 0 COMMENT '0:已申请融资；1：银行已受理；2：银行审核通过；-5：银行已驳回；',
  `role_id` int(11) NULL DEFAULT NULL COMMENT '角色ID',
  `role_type` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色类型',
  `financing_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '贷款编号',
  `financing_status` tinyint(4) NULL DEFAULT 0 COMMENT '1: 贷款发放; 5：还款中； 9：已结清贷款；',
  `financing_end_time` timestamp NULL DEFAULT NULL COMMENT '贷款到期时间',
  `levy_status` tinyint(4) NULL DEFAULT NULL COMMENT '1: 催收成功',
  `seller_id` int(11) NULL DEFAULT NULL COMMENT '申请企业ID',
  `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '申请企业名称',
  `bank_id` int(11) NULL DEFAULT NULL COMMENT '贷款银行ID',
  `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '贷款银行名称',
  `apply_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '利率(%)',
  `apply_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '贷款申请金额',
  `yfzk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应付（应收）账款金额',
  `interest_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '利息总额',
  `repayment_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '已还金额',
  `financing_months` int(11) NULL DEFAULT NULL COMMENT '融资期限（月）',
  `financing_start_time` timestamp NULL DEFAULT NULL COMMENT '贷款开始时间',
  `max_apply_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '最大融资金额',
  `protocol_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议编号',
  `accept_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '受理编号',
  `bail_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '需缴纳保证金',
  `bail_status` tinyint(4) NULL DEFAULT NULL COMMENT '保证金缴纳状态 0未缴纳 1已缴纳',
  `bail_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '保证金比例',
  `accept_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '核定保理额度',
  `contract_id` int(11) NULL DEFAULT NULL COMMENT '合同ID',
  `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '合同编号',
  `contract_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '合同金额',
  `fk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '融资放款金额',
  `apply_poundage` decimal(10, 2) NULL DEFAULT NULL COMMENT '手续费(至少10元)',
  `commit_status` tinyint(4) NULL DEFAULT NULL COMMENT '余款入账状态 0未入账 1已入账',
  `financing_type` tinyint(4) NULL DEFAULT NULL COMMENT '融资类型 1存货质押；2保兑仓；3应收账款质押；4正向保理；5反向保理；',
  `buyer_id` int(11) NULL DEFAULT NULL COMMENT '买方ID',
  `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买方名称',
  `audit_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核意见',
  `financing_audit_time` timestamp NULL DEFAULT NULL COMMENT '审核时间',
  `financing_audit_user` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审核人',
  `protocol_id` int(11) NULL DEFAULT NULL COMMENT '协议ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of financings
-- ----------------------------
INSERT INTO `financings` VALUES (1, '2023-08-15 11:31:20', '2023-08-15 11:35:35', 3, 1, 8, '2184327981', 2, 0, NULL, '8731240717', 9, '2024-03-15 00:00:00', NULL, 59, '格力电器集团公司', 15, '平安银行', 7.20, 196928.20, NULL, 7089.42, 144939.16, 6, '2023-09-15 00:00:00', 196928.20, '2023081970184', '7803465931', 59078.46, 1, 0.30, 196928.20, 1, '2023081500003', 281326.00, 196928.20, 0.00, 0, 2, 58, '振友电器销售有限公司', NULL, '2023-08-15 11:35:35', 'tzs009', 1);
INSERT INTO `financings` VALUES (2, '2023-08-15 14:04:16', '2023-08-15 14:04:45', 1, 3, 9, '1738132926', 2, 0, NULL, '5900852920', 9, '2023-11-30 00:00:00', NULL, 24, '新力电子有限公司', 11, '华夏银行', 6.86, 100000.00, 144681.00, 1715.00, 101715.00, 3, '2023-08-30 00:00:00', 101276.70, '20230815000003', NULL, NULL, 0, NULL, 100000.00, NULL, NULL, NULL, 100000.00, 0.00, 0, 1, NULL, NULL, '1', '2023-08-30 00:00:00', 'tzs006', 2);
INSERT INTO `financings` VALUES (3, '2023-08-15 14:47:32', '2023-08-15 15:00:24', 4, 2, 11, '1938397946', 2, 0, NULL, '2337756229', 9, '2023-11-24 00:00:00', NULL, 55, '鞍山钢铁有限责任公司', 14, '浦发银行', 7.18, 240000.00, 300000.00, 4308.00, 300000.00, 3, '2023-08-24 00:00:00', 240000.00, NULL, '1911454217', NULL, 0, NULL, 240000.00, 2, '2023081500004', 318826.00, 240000.00, 0.00, 1, 3, 63, '大众汽车制造有限公司', NULL, '2023-08-24 00:00:00', 'tzs006', NULL);
INSERT INTO `financings` VALUES (4, '2023-08-15 15:11:36', '2023-08-15 15:25:32', 5, 4, 12, '2082003126', 2, 0, NULL, '1909803615', 9, '2023-11-30 00:00:00', NULL, 40, '兰辉服装有限责任公司', 11, '华夏银行', 7.02, 80000.00, 90000.00, 1404.00, 90000.00, 3, '2023-08-30 00:00:00', 81000.00, NULL, '7232752056', NULL, 0, NULL, 80000.00, 3, '2023081500005', 91074.00, 80000.00, 400.00, 1, 4, 41, '太平鸟服饰有限公司', NULL, NULL, NULL, NULL);

-- ----------------------------
-- Table structure for flows
-- ----------------------------
DROP TABLE IF EXISTS `flows`;
CREATE TABLE `flows`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  `data` json NULL,
  `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '业务名称',
  `abbr` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '流程简称',
  `step` int(11) NULL DEFAULT NULL COMMENT '流程总步骤',
  `roles` json NULL COMMENT '流程相关角色',
  `flow_scores` decimal(10, 2) NULL DEFAULT NULL COMMENT '流程分数',
  `apply_role_id` int(11) NULL DEFAULT NULL COMMENT '申请角色Id',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 56 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '实训业务流程' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of flows
-- ----------------------------
INSERT INTO `flows` VALUES (1, NULL, NULL, '{\"abbr\": \"bdc\", \"step\": 24, \"roles\": [1, 2, 3, 4], \"flow_scores\": 4.17, \"apply_role_id\": 1}', '保兑仓融资', 'bdc', 24, '[1, 2, 3, 4]', 4.17, 1);
INSERT INTO `flows` VALUES (2, NULL, NULL, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '应收账款质押融资', 'yszk', 14, '[1, 2, 4]', 7.14, 2);
INSERT INTO `flows` VALUES (3, NULL, NULL, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '存货质押融资流程', 'chzy', 16, '[2, 3, 4]', 6.25, 2);
INSERT INTO `flows` VALUES (4, NULL, NULL, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '正向保理', 'zxbl', 15, '[1, 2, 4]', 6.67, 2);
INSERT INTO `flows` VALUES (5, NULL, NULL, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '反向保理', 'fxbl', 16, '[1, 2, 4]', 6.25, 2);

-- ----------------------------
-- Table structure for instance_datas
-- ----------------------------
DROP TABLE IF EXISTS `instance_datas`;
CREATE TABLE `instance_datas`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `examination_id` int(11) NOT NULL,
  `flow_id` int(11) NOT NULL,
  `instance_id` int(11) NOT NULL DEFAULT 0,
  `parent_id` int(11) NOT NULL DEFAULT 0,
  `prefix` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '编号',
  `status` tinyint(4) NULL DEFAULT 0,
  `time` timestamp NULL DEFAULT NULL COMMENT '日期',
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` json NULL,
  `instance_role_id` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of instance_datas
-- ----------------------------

-- ----------------------------
-- Table structure for instance_roles
-- ----------------------------
DROP TABLE IF EXISTS `instance_roles`;
CREATE TABLE `instance_roles`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `instance_data_id` int(11) NULL DEFAULT NULL,
  `buyer_id` int(11) NULL DEFAULT NULL,
  `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `seller_id` int(11) NULL DEFAULT NULL,
  `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `bank_id` int(11) NULL DEFAULT NULL,
  `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `express_id` int(11) NULL DEFAULT NULL,
  `express_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` json NULL,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `instance_data_idx`(`instance_data_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of instance_roles
-- ----------------------------

-- ----------------------------
-- Table structure for invoice
-- ----------------------------
DROP TABLE IF EXISTS `invoice`;
CREATE TABLE `invoice`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID',
  `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '购销合同编号',
  `invoice_end_time` timestamp NULL DEFAULT NULL COMMENT '付款到期日',
  `invoice_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '发票传递 0未传递，1已传递，2已接收',
  `invoice_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '发票金额',
  `yfzk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应收账款金额',
  `invoice_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发票号码',
  `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID',
  `vat` decimal(10, 2) NULL DEFAULT NULL COMMENT '增值税率',
  `line_file_data` json NULL COMMENT '发票文件',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发票' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of invoice
-- ----------------------------

-- ----------------------------
-- Table structure for materials
-- ----------------------------
DROP TABLE IF EXISTS `materials`;
CREATE TABLE `materials`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` json NULL,
  `name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `corporation` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '法人/负责人',
  `industry` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `account` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '账号',
  `telephone` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `address` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `balance` decimal(11, 2) UNSIGNED NOT NULL COMMENT '启动资金',
  `current_assets_ratio` decimal(4, 2) UNSIGNED NOT NULL COMMENT '流动资产比率',
  `fixed_assets_ratio` decimal(4, 2) UNSIGNED NOT NULL COMMENT '固定资产比率',
  `liabilities_ratio` decimal(4, 2) UNSIGNED NOT NULL COMMENT '资产负债率',
  `type` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '1:卖方企业；2：买方企业；3：物流仓储业；4：银行；',
  `credit_level` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '信用评级',
  `user_id` int(10) UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 111 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of materials
-- ----------------------------
INSERT INTO `materials` VALUES (11, '2022-01-04 02:28:27', '2022-02-13 23:07:31', '{\"circle_seal\": \"/storage/Seal/11.png\"}', '华夏银行', '关文洁', NULL, NULL, '0755-25103214', '深圳市南山区沙河路152号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 0);
INSERT INTO `materials` VALUES (12, '2022-01-04 02:34:55', '2022-02-13 23:07:31', '{\"circle_seal\": \"/storage/Seal/12.png\"}', '中信银行', '曹小强', NULL, NULL, '0311-52369870', '河北省石家庄市栾城区长安路56号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 0);
INSERT INTO `materials` VALUES (13, '2022-01-04 02:40:07', '2022-02-13 23:07:31', '{\"circle_seal\": \"/storage/Seal/13.png\"}', '招商银行', '李建红', NULL, NULL, '0731-62302148', '湖南省湘潭市岳塘区新沪路36号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 0);
INSERT INTO `materials` VALUES (14, '2022-01-04 02:43:01', '2022-02-13 23:07:31', '{\"circle_seal\": \"/storage/Seal/14.png\"}', '浦发银行', '潘卫', NULL, NULL, '021-52036971', '上海市浦东新区花木路59号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 0);
INSERT INTO `materials` VALUES (15, '2022-01-04 02:46:16', '2022-02-13 23:07:31', '{\"circle_seal\": \"/storage/Seal/15.png\"}', '平安银行', '谢林', NULL, NULL, '0756-25103697', '广东省珠海市斗门区新安路261号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 0);
INSERT INTO `materials` VALUES (16, '2022-01-04 02:48:47', '2022-02-13 23:07:31', '{\"circle_seal\": \"/storage/Seal/16.png\"}', '光大银行', '付军', NULL, NULL, '0755-3202514', '深圳市坪山新区新河路29号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 0);
INSERT INTO `materials` VALUES (17, '2022-01-04 02:50:43', '2022-02-13 23:07:31', '{\"circle_seal\": \"/storage/Seal/17.png\"}', '上海银行', '蒋红', NULL, NULL, '021-62031789', '上海市浦东新区华东路569号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 0);
INSERT INTO `materials` VALUES (18, '2022-01-04 06:48:53', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 12, \"name\": \"中信银行\"}, \"circle_seal\": \"/storage/Seal/18.png\"}', '华贸物流', '陈裕', NULL, '771800095098', '0311-26520147', '河北省石家庄市藁城区庄河路65号', 0.00, 0.00, 0.00, 0.00, 3, 'A', 0);
INSERT INTO `materials` VALUES (19, '2022-01-04 06:53:09', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 12, \"name\": \"中信银行\"}, \"circle_seal\": \"/storage/Seal/19.png\"}', '怡亚通物流', '周辉', NULL, '776210699850', '0311-69852134', '河北省石家庄市藁城区京开路365号', 0.00, 0.00, 0.00, 0.00, 3, 'AAA', 0);
INSERT INTO `materials` VALUES (20, '2022-01-04 06:57:13', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 13, \"name\": \"招商银行\"}, \"circle_seal\": \"/storage/Seal/20.png\"}', '中储物流', '韩林', NULL, '771862301564', '0771-36201598', '广西省南宁市武鸣区壮锦路58号', 0.00, 0.00, 0.00, 0.00, 3, 'AAA', 0);
INSERT INTO `materials` VALUES (21, '2022-01-04 07:02:58', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 15, \"name\": \"平安银行\"}, \"circle_seal\": \"/storage/Seal/21.png\"}', '中邮物流', '马晓', NULL, '771869695061', '0756-52036487', '广东省珠海市金湾区平沙路63号', 0.00, 0.00, 0.00, 0.00, 3, 'AAA', 0);
INSERT INTO `materials` VALUES (22, '2022-01-04 07:07:11', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 16, \"name\": \"光大银行\"}, \"circle_seal\": \"/storage/Seal/22.png\"}', '海格物流', '梅春雷', NULL, '771865203697', '0755-52036971', '广东省深圳市坪山新区宝梓北路128号', 0.00, 0.00, 0.00, 0.00, 3, 'AAA', 0);
INSERT INTO `materials` VALUES (23, '2022-01-04 07:11:24', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 17, \"name\": \"上海银行\"}, \"circle_seal\": \"/storage/Seal/23.png\"}', '新宁物流', '杨海锋', NULL, '772030127061', '021-52036751', '上海市嘉定区沪太路698号', 0.00, 0.00, 0.00, 0.00, 3, 'AAA', 0);
INSERT INTO `materials` VALUES (24, '2022-01-04 07:23:43', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}, \"circle_seal\": \"/storage/Seal/24.png\"}', '新力电子有限公司', '张文', '批发和零售业', '785210395061', '0755-20165841', '广东省深圳市宝安区宝安大道521号', 1000000.00, 50.00, 12.00, 70.00, 1, 'AA', 0);
INSERT INTO `materials` VALUES (25, '2022-01-04 07:53:32', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}, \"circle_seal\": \"/storage/Seal/25.png\"}', '晶东电子城', '刘强', '批发和零售业', '770320795051', '0755-50219684', '广东省深圳市宝安区创业路58号', 1000000.00, 60.00, 16.00, 55.00, 2, 'AAA', 0);
INSERT INTO `materials` VALUES (26, '2022-01-04 08:30:08', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}, \"circle_seal\": \"/storage/Seal/26.png\"}', '安科消防有限公司', '李凌', '制造业', '770036295850', '0755-85021430', '广东省深圳市光明新区振明路61号', 1000000.00, 48.00, 25.00, 60.00, 1, 'A', 0);
INSERT INTO `materials` VALUES (27, '2022-01-04 08:46:21', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}, \"circle_seal\": \"/storage/Seal/27.png\"}', '恒达集团有限公司', '徐寅', '建筑业', '770023695032', '0755-25103021', '深圳市南山区莲花路32号', 1000000.00, 74.00, 8.00, 70.00, 2, 'AAA', 0);
INSERT INTO `materials` VALUES (30, '2022-01-05 05:51:29', '2022-02-13 23:07:31', '{\"circle_seal\": \"/storage/Seal/30.png\"}', '深圳银行', '小小小', NULL, NULL, '021-62031789', '深圳市哎大点村16号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 0);
INSERT INTO `materials` VALUES (31, '2022-01-05 05:54:21', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}, \"circle_seal\": \"/storage/Seal/31.png\"}', '深圳杂货铺', '王炸', '批发和零售业', '60000000001212', '021-68314088', '深圳市深圳人路', 10000.00, 10.00, 40.00, 50.00, 1, 'B', 0);
INSERT INTO `materials` VALUES (32, '2022-01-05 05:55:29', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 13, \"name\": \"招商银行\"}, \"circle_seal\": \"/storage/Seal/32.png\"}', '深圳大买方集团', '李大麦', '批发和零售业', '60000998123847891', '021-87652234', '深圳市深圳大买街道办事处', 20000.00, 30.00, 40.00, 30.00, 2, 'B', 0);
INSERT INTO `materials` VALUES (33, '2022-01-05 05:56:23', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 16, \"name\": \"光大银行\"}, \"circle_seal\": \"/storage/Seal/33.png\"}', '深圳第一物流', '张德流', NULL, '682309978712345', '021-89882376', '深圳市物流园', 0.00, 0.00, 0.00, 0.00, 3, 'BBB', 0);
INSERT INTO `materials` VALUES (34, '2022-01-05 05:57:03', '2022-02-13 23:07:31', '{\"circle_seal\": \"/storage/Seal/34.png\"}', '深圳虚拟银行', '赵虚拟', NULL, NULL, '021-29837651', '深圳市虚拟路2021路', 0.00, 0.00, 0.00, 0.00, 4, NULL, 0);
INSERT INTO `materials` VALUES (40, '2022-01-06 11:19:36', '2022-02-13 23:07:31', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}, \"circle_seal\": \"/storage/Seal/40.png\"}', '兰辉服装有限责任公司', '曹武', '制造业', '770023695021', '0755-62031541', '深圳市宝安区松岗路521号', 1000000.00, 40.00, 20.00, 53.00, 1, 'A', 0);
INSERT INTO `materials` VALUES (41, '2022-01-06 11:24:16', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}, \"circle_seal\": \"/storage/Seal/41.png\"}', '太平鸟服饰有限公司', '张江萍', '批发和零售业', '7718002531025', '0755-25103621', '广东省深圳市宝安区建安路236号', 1000000.00, 62.00, 17.00, 54.00, 2, 'AAA', 0);
INSERT INTO `materials` VALUES (42, '2022-01-06 11:47:31', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 12, \"name\": \"中信银行\"}, \"circle_seal\": \"/storage/Seal/42.png\"}', '河庄大豆加工贸易有限公司', '李岚', '农林牧鱼业', '770214785061', '0311-25103621', '河北省石家庄市裕华区新湖路26号', 1000000.00, 46.00, 18.00, 73.00, 1, 'AA', 0);
INSERT INTO `materials` VALUES (43, '2022-01-06 13:43:08', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 12, \"name\": \"中信银行\"}, \"circle_seal\": \"/storage/Seal/43.png\"}', '海浪家电销售有限公司', '李三林', '批发与零售业', '771860036584', '0311-25984123', '河北省石家庄市新华区红林路87号', 1000000.00, 40.00, 12.00, 70.00, 1, 'A', 0);
INSERT INTO `materials` VALUES (44, '2022-01-06 14:02:28', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 13, \"name\": \"招商银行\"}, \"circle_seal\": \"/storage/Seal/44.png\"}', '裕丰食品有限公司', '宋玲', '制造业', '770869205054', '0731-52103697', '湖南省湘潭市新湖路251号', 1000000.00, 40.00, 10.00, 75.00, 1, 'BB', 0);
INSERT INTO `materials` VALUES (55, '2022-01-06 14:24:21', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 14, \"name\": \"浦发银行\"}, \"circle_seal\": \"/storage/Seal/55.png\"}', '鞍山钢铁有限责任公司', '吴林', '制造业', '761864690023', '021-20687459', '上海市金山区长宁路31号', 1000000.00, 37.00, 16.00, 60.00, 1, 'BBB', 0);
INSERT INTO `materials` VALUES (58, '2022-01-06 14:37:28', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 15, \"name\": \"平安银行\"}, \"circle_seal\": \"/storage/Seal/58.png\"}', '振友电器销售有限公司', '章东', '批发与零售业', '731003195840', '0756-85210367', '广东省珠海市香洲区北岭路75号', 1000000.00, 42.00, 12.00, 75.00, 2, 'A', 0);
INSERT INTO `materials` VALUES (59, '2022-01-06 14:39:03', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 15, \"name\": \"平安银行\"}, \"circle_seal\": \"/storage/Seal/59.png\"}', '格力电器集团公司', '董明竹', '制造业', '711800098541', '0756-85413690', '广东省珠海市金湾区平沙路29号', 1000000.00, 58.00, 23.00, 41.00, 1, 'AAA', 0);
INSERT INTO `materials` VALUES (60, '2022-01-06 14:44:22', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 16, \"name\": \"光大银行\"}, \"circle_seal\": \"/storage/Seal/60.png\"}', '比亚迪新能源车制造有限公司', '赵昌江', '制造业', '751869003264', '0755-52103621', '广东省深圳市坪山新区华东路31号', 1000000.00, 58.00, 23.00, 41.00, 1, 'AAA', 0);
INSERT INTO `materials` VALUES (61, '2022-01-06 14:47:19', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 17, \"name\": \"上海银行\"}, \"circle_seal\": \"/storage/Seal/61.png\"}', '华宇科技有限责任公司', '王瑜', '制造业', '760028691204', '021-84521036', '上海市浦东新区东方路98号', 1000000.00, 41.00, 12.00, 75.00, 1, 'BB', 0);
INSERT INTO `materials` VALUES (62, '2022-01-06 14:51:54', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 16, \"name\": \"光大银行\"}, \"circle_seal\": \"/storage/Seal/62.png\"}', '中宇新能源车销售有限公司', '黄龙', '批发与零售业', '721036651002', '0755-85412030', '广东省深圳市宝安区洪浪路28号', 1000000.00, 40.00, 12.00, 78.00, 2, 'BBB', 0);
INSERT INTO `materials` VALUES (63, '2022-01-06 14:56:34', '2022-02-13 23:07:32', '{\"bank\": {\"id\": 17, \"name\": \"上海银行\"}, \"circle_seal\": \"/storage/Seal/63.png\"}', '大众汽车制造有限公司', '黄林', '制造业', '712873691029', '021-84120321', '上海市嘉定区杭海路28号', 1000000.00, 58.00, 25.00, 43.00, 2, 'AAA', 0);
INSERT INTO `materials` VALUES (64, '2022-07-26 09:47:55', '2022-07-26 09:47:55', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}}', '新力电子有限公司2', '张文', '批发和零售业', '785210395061', '0755-20165841', '广东省深圳市宝安区宝安大道521号', 1000000.00, 50.00, 12.00, 70.00, 1, 'AA', 490);
INSERT INTO `materials` VALUES (65, '2022-07-26 09:48:23', '2022-07-26 09:48:23', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}}', '新力电子45有限公司', '张文', '批发和零售业', '785210395061', '0755-20165841', '广东省深圳市宝安区宝安大道521号', 1000000.00, 50.00, 12.00, 70.00, 1, 'AA', 490);
INSERT INTO `materials` VALUES (66, '2022-07-26 09:49:41', '2022-07-26 09:49:41', NULL, '华夏银行23', '关文洁', NULL, NULL, '0755-25103214', '深圳市南山区沙河路152号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 490);
INSERT INTO `materials` VALUES (67, '2022-07-26 09:50:53', '2022-07-26 09:50:53', NULL, '华夏银行14141', '关文洁', NULL, NULL, '0755-25103214', '深圳市南山区沙河路152号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 490);
INSERT INTO `materials` VALUES (68, '2022-07-26 09:51:34', '2022-07-26 09:51:34', NULL, '农业银行', '关文洁', NULL, NULL, '0755-25103214', '深圳市南山区沙河路152号', 0.00, 0.00, 0.00, 0.00, 4, NULL, 490);
INSERT INTO `materials` VALUES (69, '2022-07-26 09:57:53', '2022-07-26 09:57:53', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}}', '新力电子有限公司12', '张文', '批发和零售业', '785210395061', '0755-20165841', '广东省深圳市宝安区宝安大道521号', 1000000.00, 50.00, 12.00, 70.00, 1, 'AA', 490);
INSERT INTO `materials` VALUES (71, '2022-07-27 09:26:00', '2022-07-27 09:26:00', NULL, '123132', '123132', NULL, NULL, '123123', '123123', 0.00, 0.00, 0.00, 0.00, 4, NULL, 490);
INSERT INTO `materials` VALUES (73, '2022-07-27 10:26:15', '2022-07-27 10:26:15', NULL, '1', '2', NULL, NULL, '3', '4', 0.00, 0.00, 0.00, 0.00, 4, NULL, 490);
INSERT INTO `materials` VALUES (75, '2022-07-27 16:12:02', '2022-07-27 16:12:02', '{\"bank\": {\"id\": 11, \"name\": \"华夏银行\"}}', '11', '2', '制造业', '44', '33', '12313123', 1.00, 1.00, 1.00, 1.00, 1, 'CC', 490);
INSERT INTO `materials` VALUES (110, NULL, NULL, '{\"bank\": {\"id\": 12, \"name\": \"中信银行\"}, \"circle_seal\": \"/storage/Seal/110.png\"}', '123', '1', '制造业', '1111', '1111', '1111', 1.00, 1.00, 1.00, 1.00, 1, 'CC', 28258);

-- ----------------------------
-- Table structure for migrations
-- ----------------------------
DROP TABLE IF EXISTS `migrations`;
CREATE TABLE `migrations`  (
  `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  `migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `batch` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of migrations
-- ----------------------------

-- ----------------------------
-- Table structure for notices
-- ----------------------------
DROP TABLE IF EXISTS `notices`;
CREATE TABLE `notices`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  `data` json NULL,
  `content` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '公告内容',
  `teacher_id` bigint(20) NULL DEFAULT NULL COMMENT '教师id',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `fk_notices_users1_idx`(`teacher_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '公告表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of notices
-- ----------------------------

-- ----------------------------
-- Table structure for operate_scores
-- ----------------------------
DROP TABLE IF EXISTS `operate_scores`;
CREATE TABLE `operate_scores`  (
  `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  `user_examination_id` int(11) NOT NULL DEFAULT 0,
  `instance_id` int(11) NOT NULL DEFAULT 0,
  `flow_id` int(11) NOT NULL DEFAULT 0,
  `type` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
  `times` int(11) NOT NULL DEFAULT 0,
  `score` int(11) NOT NULL DEFAULT 0,
  `data` json NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of operate_scores
-- ----------------------------
INSERT INTO `operate_scores` VALUES (1, 8, 8, 1, 'bdc_jrcccd_2', 3, 2, NULL, '2023-08-15 13:26:20', '2023-08-15 13:26:23');
INSERT INTO `operate_scores` VALUES (2, 8, 8, 1, 'bdc_jrcccd_4', 3, 1, NULL, '2023-08-15 13:26:20', '2023-08-15 13:26:23');
INSERT INTO `operate_scores` VALUES (3, 8, 8, 1, 'bdc_thsqs_zck_7', 5, 1, NULL, '2023-08-15 13:35:44', '2023-08-15 13:42:18');
INSERT INTO `operate_scores` VALUES (4, 8, 8, 1, 'bdc_thtzs_zck_7', 3, 1, NULL, '2023-08-15 13:37:09', '2023-08-15 13:37:11');
INSERT INTO `operate_scores` VALUES (5, 8, 8, 1, 'bdc_thsqs_zck_6', 2, 1, NULL, '2023-08-15 13:42:17', '2023-08-15 13:42:18');
INSERT INTO `operate_scores` VALUES (6, 8, 8, 1, 'bdc_thsqs_zck_9', 2, 1, NULL, '2023-08-15 13:42:17', '2023-08-15 13:42:18');
INSERT INTO `operate_scores` VALUES (7, 9, 9, 3, 'chzy_zwqd_6', 3, 3, NULL, '2023-08-15 14:03:30', '2023-08-15 14:03:31');
INSERT INTO `operate_scores` VALUES (8, 9, 9, 3, 'chzy_thtzs_2', 3, 3, NULL, '2023-08-15 14:20:27', '2023-08-15 14:20:28');
INSERT INTO `operate_scores` VALUES (9, 9, 9, 3, 'chzy_thtzs_6', 3, 2, NULL, '2023-08-15 14:20:27', '2023-08-15 14:20:28');
INSERT INTO `operate_scores` VALUES (10, 9, 9, 3, 'chzy_thtzshz_3', 3, 3, NULL, '2023-08-15 14:21:36', '2023-08-15 14:21:37');
INSERT INTO `operate_scores` VALUES (11, 11, 11, 2, 'yszk_normal_8', 4, 3, NULL, '2023-08-15 14:47:10', '2023-08-15 14:47:24');
INSERT INTO `operate_scores` VALUES (12, 11, 11, 2, 'yszk_yyht_2', 3, 4, NULL, '2023-08-15 14:51:36', '2023-08-15 14:51:43');
INSERT INTO `operate_scores` VALUES (13, 11, 11, 2, 'yszk_yyht_8', 4, 3, NULL, '2023-08-15 14:51:36', '2023-08-15 14:52:16');
INSERT INTO `operate_scores` VALUES (14, 11, 11, 2, 'yszk_zwrqrh_10', 3, 3, NULL, '2023-08-15 14:59:49', '2023-08-15 14:59:50');
INSERT INTO `operate_scores` VALUES (15, 12, 12, 4, 'zxbl_normal_7', 3, 1, NULL, '2023-08-15 15:11:23', '2023-08-15 15:11:26');
INSERT INTO `operate_scores` VALUES (16, 12, 12, 4, 'zxbl_yszkzrs_hz_7', 3, 1, NULL, '2023-08-15 15:24:17', '2023-08-15 15:24:18');
INSERT INTO `operate_scores` VALUES (17, 12, 12, 4, 'zxbl_yszkzrs_hz_8', 3, 1, NULL, '2023-08-15 15:24:17', '2023-08-15 15:24:18');
INSERT INTO `operate_scores` VALUES (18, 12, 12, 4, 'zxbl_normal_8', 1, 0, NULL, '2023-08-15 15:28:56', NULL);

-- ----------------------------
-- Table structure for pickup_products
-- ----------------------------
DROP TABLE IF EXISTS `pickup_products`;
CREATE TABLE `pickup_products`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `examination_id` int(11) NOT NULL,
  `flow_id` int(11) NOT NULL,
  `instance_id` int(11) NOT NULL DEFAULT 0,
  `pickup_apply_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提货申请单号',
  `pickup_apply_file` json NULL COMMENT '提货申请单',
  `pickup_apply_status` tinyint(4) NULL DEFAULT 0 COMMENT '1:已上传提货申请单；2： 申请方已提交；',
  `pickup_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提货单号',
  `pickup_status` tinyint(4) NULL DEFAULT 0 COMMENT '1: 待确认；2： 银行出具提货通知书；3: 银行确认签发, 待物流银行确认；5: 物流出具提货通知书回执；9: 提货完成；',
  `apply_user_id` int(11) NULL DEFAULT NULL COMMENT '提货申请人',
  `apply_user_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提货申请人姓名',
  `pickup_time` timestamp NULL DEFAULT NULL COMMENT '提货日期',
  `pickup_apply_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '提货货物总价值',
  `financing_id` int(11) NULL DEFAULT NULL COMMENT '融资ID',
  `protocol_id` int(11) NULL DEFAULT NULL COMMENT '存货质押协议ID',
  `pickup_bank_file` json NULL COMMENT '提货通知书',
  `pickup_express_file` json NULL COMMENT '提货通知书回执',
  `shouxin_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '授信敞口',
  `had_pickup_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '已提货物金额',
  `bail_repayment_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '已缴纳保证金及还款总额',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '提货申请' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of pickup_products
-- ----------------------------
INSERT INTO `pickup_products` VALUES (1, '2023-08-15 13:35:54', '2023-08-15 13:38:31', 3, 1, 8, '74889415', '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"buyer_id\": 58, \"products\": [{\"id\": 1, \"sku\": \"DFS-2021\", \"nums\": 100, \"unit\": \"台\", \"price\": 50583, \"title\": \"电风扇\", \"cost_price\": 600, \"product_id\": 20, \"product_no\": \"100011\", \"sell_price\": 505.83, \"contract_id\": 1, \"pickup_status\": 0}, {\"id\": 2, \"sku\": \"KT-2021\", \"nums\": 100, \"unit\": \"台\", \"price\": 230743, \"title\": \"空调\", \"cost_price\": 2000, \"product_id\": 21, \"product_no\": \"100012\", \"sell_price\": 2307.43, \"contract_id\": 1, \"pickup_status\": 0}], \"bank_name\": \"平安银行\", \"seller_id\": 59, \"buyer_name\": \"振友电器销售有限公司\", \"express_id\": 21, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": \"28265\", \"repayment_time\": \"2023-11-16 00:00:00\", \"shouxin_amount\": 37849.74, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"74889415\", \"repayment_amount\": 100000, \"had_pickup_amount\": 0, \"pending_repayment\": 44939.16, \"pickup_apply_time\": \"2023-11-17 00:00:00\", \"buyer_id_fill_thsq\": 58, \"bank_name_fill_thsq\": \"平安银行\", \"pickup_apply_amount\": 0, \"buyer_name_fill_thsq\": \"振友电器销售有限公司\", \"bail_repayment_amount\": 159078.46, \"last_repayment_amount\": 100000, \"protocol_no_fill_thsq\": \"2023081970184\", \"seller_name_fill_thsq\": \"格力电器集团公司\", \"express_name_fill_thsq\": \"中邮物流\", \"pickup_products_amount\": 50583, \"repayment_time_fill_thsq\": \"2023-11-16 00:00:00\", \"pickup_apply_time_fill_thsq\": \"2023-11-17 00:00:00\", \"last_repayment_amount_fill_thsq\": \"100000\", \"pickup_products_amount_fill_thsq\": \"\\t 50583\"}', 1, '26552309', 9, 28265, 'tzs009', '2023-11-19 00:00:00', 50583.00, 1, 1, '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"flow_id\": 1, \"bank_name\": \"平安银行\", \"seller_id\": 59, \"bank_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/15\", \"buyer_name\": \"振友电器销售有限公司\", \"created_at\": \"2023-08-15 13:35:54\", \"express_id\": 21, \"updated_at\": \"2023-08-15 13:35:56\", \"instance_id\": 8, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": 28265, \"pickup_status\": 0, \"examination_id\": 3, \"shouxin_amount\": 37849.74, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"74889415\", \"pickup_products\": null, \"bank_id_fill_thtz\": 15, \"had_pickup_amount\": 50583, \"pending_repayment\": 104017.62, \"pickup_apply_file\": null, \"surplus_fill_thtz\": \"\\t 230743\", \"allTotal_fill_thtz\": \"50583\", \"financing_end_time\": \"2024-03-15 00:00:00\", \"seller_corporation\": \"董明竹\", \"bank_name_fill_thtz\": \"平安银行\", \"pickup_apply_amount\": 50583, \"pickup_apply_status\": 1, \"buyer_name_fill_thtz\": \"振友电器销售有限公司\", \"bail_repayment_amount\": 159078.46, \"pending_pickup_amount\": 230743, \"protocol_no_fill_thtz\": \"2023081970184\", \"express_name_fill_thtz\": \"中邮物流\", \"bank_apply_time_fill_thsq\": \"2023-11-18 00:00:00\", \"pickup_apply_time_fill_thsq\": \"2023-11-17 00:00:00\", \"pickup_apply_amount_fill_thtz\": \"50583\", \"pickup_apply_amount_fh_fill_thtz\": \"50583\"}', '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"flow_id\": 1, \"bank_name\": \"平安银行\", \"pickup_no\": \"26552309\", \"seller_id\": 59, \"buyer_name\": \"振友电器销售有限公司\", \"created_at\": \"2023-08-15 13:35:54\", \"express_id\": 21, \"updated_at\": \"2023-08-15 13:37:26\", \"instance_id\": 8, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": 28265, \"express_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/21\", \"pickup_status\": 3, \"examination_id\": 3, \"shouxin_amount\": 37849.74, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"74889415\", \"pickup_products\": null, \"pickup_bank_file\": null, \"bank_name_fill_hz\": \"平安银行\", \"had_pickup_amount\": 50583, \"pending_repayment\": 104017.62, \"pickup_apply_file\": null, \"buyer_name_fill_hz\": \"振友电器销售有限公司\", \"express_id_fill_hz\": 21, \"financing_end_time\": \"2024-03-15 00:00:00\", \"pickup_apply_no_hz\": \"99889415\", \"seller_corporation\": \"董明竹\", \"pickup_apply_amount\": 50583, \"pickup_apply_status\": 1, \"protocol_no_fill_hz\": \"2023081970184\", \"express_name_fill_hz\": \"中邮物流\", \"bail_repayment_amount\": 159078.46, \"pending_pickup_amount\": 230743, \"pickup_apply_no_fill_hz\": \"74889415\", \"bank_apply_time_fill_thsq\": \"2023-11-18 00:00:00\", \"pickup_apply_time_fill_hz\": \"2023-11-19 00:00:00\", \"express_apply_time_fill_hz\": \"2023-11-19 00:00:00\", \"pickup_apply_amount_fill_hz\": \"50583\"}', 37849.74, 50583.00, 159078.46);
INSERT INTO `pickup_products` VALUES (2, '2023-08-15 13:42:42', '2023-08-15 13:47:57', 3, 1, 8, '43788768', '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"buyer_id\": 58, \"products\": [{\"id\": 2, \"sku\": \"KT-2021\", \"nums\": 100, \"unit\": \"台\", \"price\": 230743, \"title\": \"空调\", \"cost_price\": 2000, \"product_id\": 21, \"product_no\": \"100012\", \"sell_price\": 2307.43, \"contract_id\": 1, \"pickup_status\": 0}], \"bank_name\": \"平安银行\", \"seller_id\": 59, \"buyer_name\": \"振友电器销售有限公司\", \"express_id\": 21, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": \"28265\", \"repayment_time\": \"2024-03-12 00:00:00\", \"shouxin_amount\": 0, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"43788768\", \"repayment_amount\": 144939.16, \"had_pickup_amount\": 50583, \"pending_repayment\": 0, \"pickup_apply_time\": \"2024-03-13 00:00:00\", \"buyer_id_fill_thsq\": 58, \"bank_name_fill_thsq\": \"平安银行\", \"pickup_apply_amount\": 0, \"buyer_name_fill_thsq\": \"振友电器销售有限公司\", \"bail_repayment_amount\": 204017.62, \"last_repayment_amount\": 44939.16, \"protocol_no_fill_thsq\": \"2023081970184\", \"seller_name_fill_thsq\": \"格力电器集团公司\", \"express_name_fill_thsq\": \"中邮物流\", \"pickup_products_amount\": 230743, \"repayment_time_fill_thsq\": \"2024-03-12 00:00:00\", \"pickup_apply_time_fill_thsq\": \"2024-03-13 00:00:00\", \"last_repayment_amount_fill_thsq\": \"44939.16\", \"pickup_products_amount_fill_thsq\": \"230743\"}', 1, '37251943', 9, 28265, 'tzs009', '2024-03-14 00:00:00', 230743.00, 1, 1, '{\"id\": 2, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"flow_id\": 1, \"bank_name\": \"平安银行\", \"seller_id\": 59, \"bank_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/15\", \"buyer_name\": \"振友电器销售有限公司\", \"created_at\": \"2023-08-15 13:42:42\", \"express_id\": 21, \"updated_at\": \"2023-08-15 13:42:44\", \"instance_id\": 8, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": 28265, \"pickup_status\": 0, \"examination_id\": 3, \"shouxin_amount\": 0, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"43788768\", \"pickup_products\": null, \"bank_id_fill_thtz\": 15, \"had_pickup_amount\": 281326, \"pending_repayment\": 59078.46, \"pickup_apply_file\": null, \"surplus_fill_thtz\": \"0\", \"allTotal_fill_thtz\": \"281326\", \"financing_end_time\": \"2024-03-15 00:00:00\", \"seller_corporation\": \"董明竹\", \"bank_name_fill_thtz\": \"平安银行\", \"pickup_apply_amount\": 230743, \"pickup_apply_status\": 1, \"buyer_name_fill_thtz\": \"振友电器销售有限公司\", \"bail_repayment_amount\": 204017.62, \"pending_pickup_amount\": 0, \"protocol_no_fill_thtz\": \"2023081970184\", \"express_name_fill_thtz\": \"中邮物流\", \"bank_apply_time_fill_thsq\": \"2024-03-14 00:00:00\", \"pickup_apply_time_fill_thsq\": \"2024-03-13 00:00:00\", \"pickup_apply_amount_fill_thtz\": \"230743\", \"pickup_apply_amount_fh_fill_thtz\": \"230743\"}', '{\"id\": 2, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"flow_id\": 1, \"bank_name\": \"平安银行\", \"pickup_no\": \"37251943\", \"seller_id\": 59, \"buyer_name\": \"振友电器销售有限公司\", \"created_at\": \"2023-08-15 13:42:42\", \"express_id\": 21, \"updated_at\": \"2023-08-15 13:45:39\", \"instance_id\": 8, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"apply_amount\": 196928.2, \"express_name\": \"中邮物流\", \"financing_id\": 1, \"financing_no\": \"8731240717\", \"apply_user_id\": 28265, \"express_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/21\", \"pickup_status\": 3, \"examination_id\": 3, \"shouxin_amount\": 0, \"apply_user_name\": \"tzs009\", \"contract_amount\": 281326, \"pickup_apply_no\": \"43788768\", \"pickup_products\": null, \"pickup_bank_file\": null, \"bank_name_fill_hz\": \"平安银行\", \"had_pickup_amount\": 281326, \"pending_repayment\": 59078.46, \"pickup_apply_file\": null, \"buyer_name_fill_hz\": \"振友电器销售有限公司\", \"express_id_fill_hz\": 21, \"financing_end_time\": \"2024-03-15 00:00:00\", \"pickup_apply_no_hz\": \"99788768\", \"seller_corporation\": \"董明竹\", \"pickup_apply_amount\": 230743, \"pickup_apply_status\": 1, \"protocol_no_fill_hz\": \"2023081970184\", \"express_name_fill_hz\": \"中邮物流\", \"bail_repayment_amount\": 204017.62, \"pending_pickup_amount\": 0, \"pickup_apply_no_fill_hz\": \"43788768\", \"bank_apply_time_fill_thsq\": \"2024-03-14 00:00:00\", \"pickup_apply_time_fill_hz\": \"2024-03-14 00:00:00\", \"express_apply_time_fill_hz\": \"2024-03-14 00:00:00\", \"pickup_apply_amount_fill_hz\": \"230743\"}', 0.00, 281326.00, 204017.62);
INSERT INTO `pickup_products` VALUES (3, '2023-08-15 14:18:14', '2023-08-15 14:21:50', 1, 3, 9, '80105211', '{\"pickup_all\": 1, \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\", \"pickup_time\": \"2023-11-27 00:00:00\", \"protocol_no\": \"20230815000003\", \"getName_fill\": \"tzs006\", \"nameCard_fill\": \"412822199001164829\", \"accept_address\": \"深圳\", \"bank_name_fill\": \"华夏银行\", \"seller_id_fill\": 24, \"pickup_apply_no\": \"80105211\", \"pickup_time_fill\": \"2023-11-27 00:00:00\", \"seller_name_fill\": \"新力电子有限公司\", \"express_name_fill\": \"海格物流\", \"pickup_products_amount\": \"144681.00\"}', 2, '94962466', 9, 28259, 'tzs006', '2023-12-01 00:00:00', 144681.00, 2, 2, '{\"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"financing_no\": \"5900852920\", \"getName_fill\": \"tzs006\", \"bank_id_fill_\": 11, \"pickup_status\": 0, \"accept_address\": \"深圳\", \"nameCard_fill_\": \"412822199001164829\", \"bank_name_fill_\": \"华夏银行\", \"pickup_apply_no\": \"80105211\", \"pending_repayment\": 0, \"pickup_time_fill_\": \"2023-11-28 00:00:00\", \"protocol_no_fill_\": \"20230815000003\", \"express_name_fill_\": \"海格物流\", \"seller_name_fill_tzs\": \"新力电子有限公司\"}', '{\"pickup_no\": \"94962466\", \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/22\", \"pickup_status\": 5, \"pickup_apply_no\": \"80105211\", \"bank_name_fill_hz\": \"华夏银行\", \"pending_repayment\": 0, \"express_id_fill_hz\": 22, \"pickup_time_fill_hz\": \"2023-11-29 00:00:00\", \"protocol_no_fill_hz\": \"20230815000003\", \"seller_name_fill_hz\": \"新力电子有限公司\", \"express_name_fill_hz\": \"海格物流\", \"pickup_time_lk_fill_hz\": \"2023-11-29 00:00:00\", \"pickup_apply_no_fill_hz\": \"80105266\"}', NULL, 144681.00, NULL);

-- ----------------------------
-- Table structure for products
-- ----------------------------
DROP TABLE IF EXISTS `products`;
CREATE TABLE `products`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` json NULL,
  `product_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `title` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `unit` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `sku` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `cost_price` decimal(11, 2) UNSIGNED NOT NULL COMMENT '成本价格',
  `sell_price` decimal(11, 2) UNSIGNED NOT NULL COMMENT '售价',
  `user_id` int(10) UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 43 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of products
-- ----------------------------
INSERT INTO `products` VALUES (4, '2022-01-04 07:37:35', '2023-08-15 03:00:00', '{\"buyer_ids\": [25], \"seller_ids\": [24]}', '000001', '摄像头', '个', 'SXT-2020', 300.00, 373.51, 0);
INSERT INTO `products` VALUES (5, '2022-01-05 05:45:10', '2023-08-15 03:00:00', NULL, '21312', '12313', '1231', '12312', 1.00, 0.98, 490);
INSERT INTO `products` VALUES (6, '2022-01-05 05:47:40', '2023-08-15 03:00:00', NULL, '6767', '6767', '6767', '67676', 676.00, 741.37, 490);
INSERT INTO `products` VALUES (7, '2022-01-05 05:48:18', '2023-08-15 03:00:00', NULL, '89898', '8989', '8989', '8989', 898.00, 1095.26, 490);
INSERT INTO `products` VALUES (8, '2022-01-05 05:49:40', '2023-08-15 03:00:00', NULL, '45623', '笔记本电脑', '台', '206', 8986.00, 10183.56, 490);
INSERT INTO `products` VALUES (9, '2022-01-05 05:50:18', '2023-08-15 03:00:00', NULL, '00023', '台式电脑', '台', '206', 8986.00, 10662.09, 490);
INSERT INTO `products` VALUES (10, '2022-01-05 05:52:44', '2023-08-15 03:00:00', NULL, '000002', '笔记本', '本', '101', 1.00, 1.22, 0);
INSERT INTO `products` VALUES (11, '2022-01-06 15:00:02', '2023-08-15 03:00:00', '{\"buyer_ids\": [25], \"seller_ids\": [24]}', '100002', '电子表', '箱', 'DZB-2021', 1000.00, 1073.30, 0);
INSERT INTO `products` VALUES (12, '2022-01-06 15:13:21', '2023-08-15 03:00:00', '{\"buyer_ids\": [25], \"seller_ids\": [24]}', '100003', '蓝牙耳机', '箱', 'LYEJ-2021', 2000.00, 2351.62, 0);
INSERT INTO `products` VALUES (13, '2022-01-06 15:16:19', '2023-08-15 03:00:00', NULL, '100004', '消火栓箱', '个', 'XHS-2020', 1000.00, 1149.71, 0);
INSERT INTO `products` VALUES (14, '2022-01-06 15:17:17', '2023-08-15 03:00:00', NULL, '100005', '灭火器箱', '个', 'MYQ-2020', 150.00, 200.33, 0);
INSERT INTO `products` VALUES (15, '2022-01-06 15:18:04', '2023-08-15 03:00:00', NULL, '100006', '手提式干粉灭火器', '个', 'STMYQ-2020', 15.00, 19.26, 0);
INSERT INTO `products` VALUES (16, '2022-01-06 15:19:44', '2023-08-15 03:00:00', '{\"seller_ids\": [42]}', '100007', '大豆', '袋', 'YZDA-2021', 200.00, 199.77, 0);
INSERT INTO `products` VALUES (17, '2022-01-06 15:20:37', '2023-08-15 03:00:00', '{\"buyer_ids\": [41], \"seller_ids\": [40]}', '100008', '羽绒服', '件', 'YRF-2021', 500.00, 596.75, 0);
INSERT INTO `products` VALUES (18, '2022-01-06 15:21:32', '2023-08-15 03:00:00', '{\"buyer_ids\": [41], \"seller_ids\": [40]}', '100009', '男士夹克衫', '件', 'MJK-2021', 300.00, 313.99, 0);
INSERT INTO `products` VALUES (19, '2022-01-06 15:22:38', '2023-08-15 03:00:00', '{\"seller_ids\": [44]}', '100010', '白糖', '袋', 'YZBT-2021', 150.00, 155.48, 0);
INSERT INTO `products` VALUES (20, '2022-01-06 15:23:35', '2023-08-15 03:00:00', '{\"buyer_ids\": [58], \"seller_ids\": [43, 59]}', '100011', '电风扇', '台', 'DFS-2021', 600.00, 505.83, 0);
INSERT INTO `products` VALUES (21, '2022-01-06 15:24:11', '2023-08-15 03:00:00', '{\"buyer_ids\": [58], \"seller_ids\": [43, 59]}', '100012', '空调', '台', 'KT-2021', 2000.00, 2307.43, 0);
INSERT INTO `products` VALUES (22, '2022-01-06 15:26:08', '2023-08-15 03:00:00', '{\"seller_ids\": [55]}', '100013', '螺纹钢', '吨', 'LWGA-2021', 3500.00, 3188.26, 0);
INSERT INTO `products` VALUES (23, '2022-01-06 15:35:23', '2023-08-15 03:00:00', '{\"buyer_ids\": [62], \"seller_ids\": [60]}', '100014', '新能源汽车', '辆', 'BYD-2021', 200000.00, 146660.50, 0);
INSERT INTO `products` VALUES (24, '2022-01-06 15:38:45', '2023-08-15 03:00:00', '{\"buyer_ids\": [63], \"seller_ids\": [61]}', '100015', '气缸体', '个', 'QGT-2021', 1000.00, 1411.25, 0);
INSERT INTO `products` VALUES (25, '2022-01-06 15:40:30', '2023-08-15 03:00:00', '{\"buyer_ids\": [63], \"seller_ids\": [61]}', '100016', '减速器', '个', 'JSQ-2021', 2000.00, 2200.06, 0);
INSERT INTO `products` VALUES (26, '2022-07-24 00:33:57', '2023-08-15 03:00:00', '{\"buyer_ids\": [\"25\", \"27\", \"32\"], \"seller_ids\": [\"24\", \"26\", \"31\"]}', '888888', '大西瓜', '个', '1', 50.00, 59.34, 1829);
INSERT INTO `products` VALUES (27, '2022-07-24 00:42:26', '2023-08-15 03:00:00', '{\"buyer_ids\": [\"27\", \"32\", \"41\"], \"seller_ids\": [\"26\", \"31\", \"40\"]}', '1', '2', '4', '3', 5.00, 5.29, 1829);
INSERT INTO `products` VALUES (28, '2022-07-24 00:43:59', '2023-08-15 03:00:00', '{\"buyer_ids\": [[\"25\", \"27\", \"32\"]], \"seller_ids\": [[\"24\", \"26\", \"31\"]]}', '123', '123', '231', '123', 321.00, 330.19, 1829);
INSERT INTO `products` VALUES (29, '2022-07-24 00:54:30', '2023-08-15 03:00:00', '{\"buyer_ids\": [\"25\", \"27\", \"32\"], \"seller_ids\": [\"24\", \"26\", \"31\"]}', '999999', '毛衣', '件', 'AAADDD', 500.00, 604.06, 1829);
INSERT INTO `products` VALUES (30, '2022-07-25 10:06:05', '2023-08-15 03:00:00', '{\"buyer_ids\": \"[25, 27, 32]\", \"seller_ids\": \"[24, 26, 31]\"}', '999888787', '保温杯', '个', 'BWB888', 50.00, 53.54, 1829);
INSERT INTO `products` VALUES (31, '2022-07-25 10:38:54', '2023-08-15 03:00:00', '{\"buyer_ids\": [27, 25, 32, 41, 58], \"seller_ids\": [24, 26, 31, 40, 42]}', '88556565655', '洗衣机', '台', 'XYJ002', 2000.00, 2096.46, 12626);
INSERT INTO `products` VALUES (32, '2022-07-25 10:50:20', '2023-08-15 03:00:00', NULL, '123456789000', '花生', '斤', 'HS001', 30.00, 33.56, 12626);
INSERT INTO `products` VALUES (33, '2022-07-25 10:55:14', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32], \"seller_ids\": [24, 26, 31]}', 'DJ20020', '光碟', '个', 'GD5252', 50.00, 57.31, 12626);
INSERT INTO `products` VALUES (34, '2022-08-04 20:24:49', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 58, 62, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', 'HW0002', '西瓜', '斤', 'XG00222', 10.00, 12.31, 12622);
INSERT INTO `products` VALUES (35, '2022-08-04 20:25:51', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32, 58, 41, 62, 63], \"seller_ids\": [24, 26, 31, 42, 40, 43, 44, 55, 59, 60, 61]}', 'HY001', '火药', '斤', 'HY00000', 500.00, 543.63, 12622);
INSERT INTO `products` VALUES (36, '2022-09-04 22:27:43', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 62, 58, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', '100017', '煤气罐', '个', 'MQG', 6000.00, 6210.67, 12624);
INSERT INTO `products` VALUES (37, '2022-09-04 22:28:23', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 58, 62, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', '1000018', '钓鱼竿', '棵', 'DYG002', 3000.00, 2903.01, 12624);
INSERT INTO `products` VALUES (38, '2022-09-04 22:29:14', '2023-08-15 03:00:00', '{\"buyer_ids\": [25, 27, 32, 41, 58, 62, 63], \"seller_ids\": [24, 26, 31, 40, 42, 43, 44, 55, 59, 60, 61]}', '100019', '老干妈', '瓶', 'LGM', 30.00, 34.82, 12624);
INSERT INTO `products` VALUES (40, NULL, '2023-08-15 03:00:00', NULL, '111111', '豆浆粉', '袋', '111-111', 15.00, 15.72, 28258);
INSERT INTO `products` VALUES (41, NULL, '2023-08-15 03:00:00', NULL, '0000012', '手机', '台', 'Xiaomi', 2000.00, 2328.42, 28264);

-- ----------------------------
-- Table structure for protocols
-- ----------------------------
DROP TABLE IF EXISTS `protocols`;
CREATE TABLE `protocols`  (
  `id` int(11) UNSIGNED ZEROFILL NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID',
  `protocol_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议编号',
  `protocol_time` timestamp NULL DEFAULT NULL COMMENT '签约日期',
  `protocol_status` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '协议状态 0未确认，1、2、3、4四方分别确认',
  `product_data` json NULL COMMENT '协议文件',
  `buyer_id` int(11) NULL DEFAULT NULL COMMENT '买方ID',
  `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买方',
  `seller_id` int(11) NULL DEFAULT NULL COMMENT '卖方ID',
  `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '卖方',
  `bank_id` int(11) NULL DEFAULT NULL COMMENT '银行ID',
  `bank_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '银行',
  `express_id` int(11) NULL DEFAULT NULL COMMENT '物流ID',
  `express_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物流',
  `type` tinyint(1) NULL DEFAULT 0 COMMENT '类型',
  `protocol_data` json NULL COMMENT '此字段待删除',
  `buyer_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '买方是否确认',
  `seller_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '卖方是否确认',
  `bank_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '银行是否确认',
  `express_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '物流是否确认',
  `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '购销合同编号',
  `protocol_start_time` timestamp NULL DEFAULT NULL COMMENT '协议开始时间',
  `protocol_end_time` timestamp NULL DEFAULT NULL COMMENT '协议到期时间',
  `protocol_fxbl_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '反向保理授信额度',
  `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '卖方、买方、银行、物流签订协议' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of protocols
-- ----------------------------
INSERT INTO `protocols` VALUES (00000000001, '2023-08-15 11:29:59', '2023-08-15 11:30:48', 3, 1, 8, '2023081970184', '2023-08-19 00:00:00', 4, NULL, 58, '振友电器销售有限公司', 59, '格力电器集团公司', 15, '平安银行', 21, '中邮物流', 2, '{\"bank_list\": {\"address\": \"广东省珠海市斗门区新安路261号\", \"bank_id\": 15, \"bank_name\": \"平安银行\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/15\", \"telephone\": \"0756-25103697\", \"can_deleted\": false, \"corporation\": \"谢林\"}, \"buyer_list\": {\"bank\": \"平安银行\", \"account\": \"731003195840\", \"address\": \"广东省珠海市香洲区北岭路75号\", \"balance\": 1000000, \"bank_id\": 15, \"buyer_id\": 58, \"industry\": \"批发与零售业\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/58\", \"telephone\": \"0756-85210367\", \"buyer_name\": \"振友电器销售有限公司\", \"can_deleted\": false, \"corporation\": \"章东\", \"credit_level\": \"A\", \"liabilities_ratio\": 75, \"fixed_assets_ratio\": 12, \"current_assets_ratio\": 42}, \"seller_list\": {\"bank\": \"平安银行\", \"account\": \"711800098541\", \"address\": \"广东省珠海市金湾区平沙路29号\", \"balance\": 1000000, \"bank_id\": 15, \"industry\": \"制造业\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/59\", \"seller_id\": 59, \"telephone\": \"0756-85413690\", \"can_deleted\": false, \"corporation\": \"董明竹\", \"seller_name\": \"格力电器集团公司\", \"credit_level\": \"AAA\", \"liabilities_ratio\": 41, \"fixed_assets_ratio\": 23, \"current_assets_ratio\": 58}, \"express_list\": {\"bank\": \"平安银行\", \"account\": \"771869695061\", \"address\": \"广东省珠海市金湾区平沙路63号\", \"bank_id\": 15, \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/21\", \"telephone\": \"0756-52036487\", \"express_id\": 21, \"can_deleted\": false, \"corporation\": \"马晓\", \"credit_level\": \"AAA\", \"express_name\": \"中邮物流\", \"express_id_ok\": 21}, \"contract_time\": \"2023-08-15 11:25:22\", \"contract_amount\": 281326}', 1, 1, 1, 1, '2023081500003', NULL, NULL, NULL, 1);
INSERT INTO `protocols` VALUES (00000000002, '2023-08-15 13:53:29', '2023-08-15 13:54:00', 1, 3, 9, '20230815000003', '2023-08-15 13:53:07', 3, NULL, NULL, NULL, 24, '新力电子有限公司', 11, '华夏银行', 22, '海格物流', 0, '{\"bank_info\": {\"address\": \"深圳市南山区沙河路152号\", \"bank_id\": 11, \"bank_name\": \"华夏银行\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"telephone\": \"0755-25103214\", \"bank_id_ok\": 11, \"can_deleted\": false, \"corporation\": \"关文洁\"}, \"wuliu_info\": {\"bank\": \"光大银行\", \"account\": \"771865203697\", \"address\": \"广东省深圳市坪山新区宝梓北路128号\", \"bank_id\": 16, \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/22\", \"telephone\": \"0755-52036971\", \"express_id\": 22, \"can_deleted\": false, \"corporation\": \"梅春雷\", \"credit_level\": \"AAA\", \"express_name\": \"海格物流\", \"express_id_ok\": 22}, \"seller_info\": {\"bank\": \"华夏银行\", \"account\": \"785210395061\", \"address\": \"广东省深圳市宝安区宝安大道521号\", \"balance\": 1000000, \"bank_id\": 11, \"industry\": \"批发和零售业\", \"seal_path\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/24\", \"seller_id\": 24, \"telephone\": \"0755-20165841\", \"can_deleted\": false, \"corporation\": \"张文\", \"seller_name\": \"新力电子有限公司\", \"credit_level\": \"AA\", \"seller_id_ok\": 24, \"liabilities_ratio\": 70, \"fixed_assets_ratio\": 12, \"current_assets_ratio\": 50}}', NULL, 1, 1, 1, NULL, NULL, NULL, NULL, NULL);
INSERT INTO `protocols` VALUES (00000000003, '2023-08-15 15:59:14', '2023-08-15 15:59:42', 8, 5, 15, '20230815000004', '2023-08-19 00:00:00', 2, NULL, 27, '恒达集团有限公司', NULL, NULL, 11, '华夏银行', NULL, NULL, NULL, '{\"bank_id\": 11, \"buyer_id\": 27, \"bank_name\": \"华夏银行\", \"bank_id_ok\": 11, \"buyer_name\": \"恒达集团有限公司\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/27\", \"buyer_id_ok\": 27, \"jiafang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\", \"protocol_no\": \"20230815000004\", \"bank_address\": \"深圳市南山区沙河路152号\", \"buyer_account\": \"770023695032\", \"buyer_address\": \"深圳市南山区莲花路32号\", \"buyer_name_lk\": \"恒达集团有限公司\", \"protocol_desc\": \"解决乙方上游供应商资金问题\", \"protocol_time\": \"2023-08-19 00:00:00\", \"bank_telephone\": \"0755-25103214\", \"buyer_bank_name\": \"华夏银行\", \"buyer_telephone\": \"0755-25103021\", \"bank_corporation\": \"关文洁\", \"buyer_corporation\": \"徐寅\", \"protocol_end_time\": \"2024-02-19 00:00:00\", \"bank_corporation_lk\": \"关文洁\", \"protocol_start_time\": \"2023-08-19 00:00:00\", \"bank_name_hm_fill_fx\": \"华夏银行\", \"bank_name_lk_fill_fx\": \"华夏银行\", \"buyer_corporation_lk\": \"徐寅\", \"protocol_fxbl_amount\": \"200000\", \"bank_name_khh_fill_fx\": \"华夏银行\", \"buyer_account_fill_fx\": \"622712345678\", \"protocol_fxbl_dx_amount\": \"贰拾万元整\"}', 1, NULL, 1, NULL, '2023081500006', '2023-08-19 00:00:00', '2024-02-19 00:00:00', 200000.00, 4);

-- ----------------------------
-- Table structure for recommend_supplier
-- ----------------------------
DROP TABLE IF EXISTS `recommend_supplier`;
CREATE TABLE `recommend_supplier`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID',
  `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '购销合同编号',
  `seller_id` int(11) NULL DEFAULT NULL COMMENT '供应商ID',
  `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商名称',
  `supply_level` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '供应商评级',
  `supply_status` tinyint(1) NULL DEFAULT NULL COMMENT '是否推荐 0否，1是',
  `supply_year` tinyint(1) NULL DEFAULT NULL COMMENT '合作年限',
  `yfzk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应收账款均值',
  `supply_rate` decimal(10, 2) NULL DEFAULT NULL COMMENT '供应商利率: 一级供应商利率为8%，二级供应商利率8.5%，三级供应商利率为9%',
  `contract_id` int(11) NULL DEFAULT NULL COMMENT '购销合同ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '推荐供应商' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of recommend_supplier
-- ----------------------------
INSERT INTO `recommend_supplier` VALUES (1, '2023-08-15 15:59:58', '2023-08-15 16:00:01', 8, 5, 15, '2023081500006', 26, '安科消防有限公司', '1', 1, 5, 150000.00, 8.00, 4);

-- ----------------------------
-- Table structure for repayments
-- ----------------------------
DROP TABLE IF EXISTS `repayments`;
CREATE TABLE `repayments`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID',
  `repayment_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '还款编号',
  `repayment_status` tinyint(4) NULL DEFAULT NULL COMMENT '0：催收；1：还款中；9: 已结清贷款；',
  `financing_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '贷款编号',
  `repayment_time` datetime NULL DEFAULT NULL COMMENT '还款时间',
  `repayment_amount` decimal(10, 2) NOT NULL COMMENT '还款金额',
  `repayment_count` int(11) NULL DEFAULT NULL COMMENT '还款次数',
  `financing_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应付账款金额',
  `repayment_type` tinyint(4) NULL DEFAULT NULL COMMENT '还款类型：1买方还款 2卖方还款',
  `repayment_user_id` int(11) NULL DEFAULT NULL COMMENT '还款人ID',
  `repayment_user` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '还款人',
  `financing_id` int(11) NULL DEFAULT NULL COMMENT '贷款ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '还贷管理' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of repayments
-- ----------------------------
INSERT INTO `repayments` VALUES (1, '2023-08-15 13:28:34', '2023-08-15 11:35:35', 3, 1, 8, '202308150001', 1, '8731240717', '2023-11-16 00:00:00', 100000.00, 1, 44939.16, 1, 28265, 'tzs009', 1);
INSERT INTO `repayments` VALUES (2, '2023-08-15 13:40:27', '2023-08-15 11:35:35', 3, 1, 8, '202308150002', 9, '8731240717', '2024-03-12 00:00:00', 44939.16, 2, 0.00, 1, 28265, 'tzs009', 1);
INSERT INTO `repayments` VALUES (3, '2023-08-15 14:06:13', '2023-08-15 14:04:45', 1, 3, 9, '202308150003', 9, '5900852920', '2023-11-24 00:00:00', 101715.00, 1, 0.00, 2, 28259, 'tzs006', 2);
INSERT INTO `repayments` VALUES (4, '2023-08-15 15:02:21', '2023-08-15 15:00:24', 4, 2, 11, '202308150004', 9, '2337756229', '2023-11-21 00:00:00', 300000.00, 1, 0.00, 1, 28259, 'tzs006', 3);
INSERT INTO `repayments` VALUES (5, '2023-08-15 15:29:04', '2023-08-15 15:25:32', 5, 4, 12, '202308150006', 9, '1909803615', '2023-11-28 15:28:47', 90000.00, 1, 0.00, 1, 28259, 'tzs006', 4);

-- ----------------------------
-- Table structure for roles
-- ----------------------------
DROP TABLE IF EXISTS `roles`;
CREATE TABLE `roles`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of roles
-- ----------------------------
INSERT INTO `roles` VALUES (1, '买方企业', NULL);
INSERT INTO `roles` VALUES (2, '卖方企业', NULL);
INSERT INTO `roles` VALUES (3, '物流仓储业', NULL);
INSERT INTO `roles` VALUES (4, '银行', NULL);

-- ----------------------------
-- Table structure for schools
-- ----------------------------
DROP TABLE IF EXISTS `schools`;
CREATE TABLE `schools`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` json NULL,
  `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
  `status` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `code` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `college` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `major` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `core_org_id` int(11) NOT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `name_UNIQUE`(`name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of schools
-- ----------------------------

-- ----------------------------
-- Table structure for send_products
-- ----------------------------
DROP TABLE IF EXISTS `send_products`;
CREATE TABLE `send_products`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `data` json NULL,
  `examination_id` int(11) NOT NULL,
  `flow_id` int(11) NOT NULL,
  `instance_id` int(11) NOT NULL DEFAULT 0,
  `send_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货单号',
  `send_data` json NULL,
  `send_status` tinyint(4) NULL DEFAULT NULL COMMENT '0:待发货；1：待接收；2: 已接收；',
  `product_data` json NULL,
  `accept_data` json NULL COMMENT '收货信息',
  `in_warehouse_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库编号',
  `in_warehouse_data` json NULL,
  `in_warehouse_status` tinyint(4) NULL DEFAULT NULL COMMENT '0:已入库;1: 待核定；2：已核定；',
  `entity_id` int(11) NULL DEFAULT NULL,
  `entity_type` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `seller_id` int(11) NULL DEFAULT NULL COMMENT '发货人ID',
  `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货人姓名',
  `buyer_id` int(11) NULL DEFAULT NULL COMMENT '买方ID',
  `buyer_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '买方名称',
  `send_time` timestamp NULL DEFAULT NULL COMMENT '发货时间',
  `send_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货地点',
  `accept_time` timestamp NULL DEFAULT NULL COMMENT '收货时间',
  `accept_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '收货地点',
  `contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '合同编号',
  `contract_id` int(11) NULL DEFAULT NULL COMMENT '合同ID',
  `examination_inst_id` int(11) NULL DEFAULT NULL COMMENT 'user_examination id',
  `express_id` int(11) NULL DEFAULT NULL COMMENT '物流ID',
  `express_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '物流名称',
  `protocol_id` int(11) NULL DEFAULT NULL COMMENT '协议ID',
  `protocol_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '协议编号',
  `total_cost_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '货物成本总价',
  `total_sell_price` decimal(10, 2) NULL DEFAULT NULL COMMENT '货物总售价',
  `send_invoice_file` json NULL COMMENT '银行承兑汇票收悉确认函',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '发货管理' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of send_products
-- ----------------------------
INSERT INTO `send_products` VALUES (1, '2023-08-15 11:45:11', NULL, NULL, 3, 1, 8, '210391991172', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 59, '格力电器集团公司', NULL, '振友电器销售有限公司', '2023-09-15 00:00:00', '深圳', '2023-09-16 00:00:00', '深圳', '2023081500003', 1, 8, 21, '中邮物流', 1, '2023081970184', NULL, NULL, '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 15, \"send_no\": \"210391991172\", \"buyer_id\": 58, \"products\": null, \"bank_name\": \"平安银行\", \"seller_id\": 59, \"send_time\": \"2023-09-15 00:00:00\", \"buyer_name\": \"振友电器销售有限公司\", \"express_id\": 21, \"invoice_no\": \"19988295\", \"yifang_png\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/59\", \"contract_id\": 1, \"contract_no\": \"2023081500003\", \"protocol_id\": \"1\", \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"express_name\": \"中邮物流\", \"invoice_time\": \"2023-09-15 00:00:00\", \"send_address\": \"深圳\", \"invoice_amount\": 196928.2, \"contract_amount\": 281326, \"bank_name_fill_hp\": \"平安银行\", \"invoice_no_return\": \"10988295\", \"seller_id_fill_hp\": 59, \"buyer_name_fill_hp\": \"振友电器销售有限公司\", \"financing_end_time\": \"2024-03-15 00:00:00\", \"invoice_no_fill_hp\": \"19988295\", \"seller_corporation\": \"董明竹\", \"contract_no_fill_hp\": \"2023081500003\", \"protocol_no_fill_hp\": \"2023081970184\", \"seller_name_fill_hp\": \"格力电器集团公司\", \"invoice_time_fill_hp\": \"2023-09-15 00:00:00\", \"invoice_amount_fill_hp\": 196928.2, \"invoice_amount_cap_fill\": \"壹拾玖万陆仟玖佰贰拾捌元贰角\", \"invoice_time_fill_hp_qy\": \"2023-09-15 00:00:00\", \"invoice_amount_fill_hp_xx\": 196928.2, \"financing_end_time_fill_hp\": \"2024-03-15 00:00:00\"}');
INSERT INTO `send_products` VALUES (2, '2023-08-15 13:54:33', '2023-08-15 13:54:36', NULL, 1, 3, 9, '022662657825', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, NULL, '2023-08-17 00:00:00', '深圳', '2023-08-18 00:00:00', '深圳', NULL, NULL, 9, 22, '海格物流', 2, '20230815000003', 130000.00, 144681.00, NULL);
INSERT INTO `send_products` VALUES (3, '2023-08-15 14:33:01', NULL, NULL, 4, 2, 11, '195722560525', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 55, '鞍山钢铁有限责任公司', NULL, '大众汽车制造有限公司', '2023-08-15 14:32:55', '深圳', '2023-08-17 00:00:00', '所示', '2023081500004', 2, 11, NULL, NULL, NULL, NULL, 350000.00, 318826.00, NULL);
INSERT INTO `send_products` VALUES (4, '2023-08-15 15:06:07', NULL, NULL, 5, 4, 12, '962106009825', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 40, '兰辉服装有限责任公司', NULL, '太平鸟服饰有限公司', '2023-08-15 15:06:02', '大的', '2023-08-17 00:00:00', '大的', '2023081500005', 3, 12, NULL, NULL, NULL, NULL, 80000.00, 91074.00, NULL);
INSERT INTO `send_products` VALUES (5, '2023-08-15 15:55:38', NULL, NULL, 8, 5, 15, '390464158143', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 26, '安科消防有限公司', NULL, '恒达集团有限公司', '2023-08-15 15:55:32', '22', '2023-08-17 00:00:00', '22', '2023081500006', 4, 15, NULL, NULL, NULL, NULL, 115000.00, 135004.00, NULL);
INSERT INTO `send_products` VALUES (6, '2023-08-15 16:40:19', NULL, NULL, 8, 5, 18, '288569410465', NULL, 2, NULL, NULL, NULL, NULL, 0, NULL, NULL, 24, '新力电子有限公司', NULL, '晶东电子城', '2023-08-15 16:40:14', '22', '2023-08-17 00:00:00', '22', '2023081500007', 5, 18, NULL, NULL, NULL, NULL, 130000.00, 144681.00, NULL);

-- ----------------------------
-- Table structure for student
-- ----------------------------
DROP TABLE IF EXISTS `student`;
CREATE TABLE `student`  (
  `student_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '学生ID',
  `student_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '学号',
  `student_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '姓名',
  `student_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '电话号码',
  `student_account` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '学生账号',
  `student_password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
  `student_sex` int(11) NULL DEFAULT NULL COMMENT '性别(1男 2女)',
  `student_id_cart_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '证件类型',
  `student_id_card` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '证件号',
  `max_education` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '最高学历',
  `student_political_outlook` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '政治面貌',
  `student_address` varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系地址',
  `student_source` varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '来源',
  `student_nation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '民族',
  `student_birthday` date NULL DEFAULT NULL COMMENT '出生年月',
  `student_test_no` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '考生号',
  `postal_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮政编码',
  `student_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '邮箱',
  `student_job_address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '工作单位',
  `target_university_id` bigint(20) NULL DEFAULT NULL COMMENT '报考学校ID',
  `student_remark` varchar(3000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
  `student_status` int(11) NULL DEFAULT NULL COMMENT '状态（1正常 2删除）',
  `student_add_time` datetime NULL DEFAULT NULL COMMENT '添加时间',
  `org_id` bigint(20) NULL DEFAULT NULL COMMENT '组织机构ID',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '后台用户ID',
  PRIMARY KEY (`student_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '学生' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of student
-- ----------------------------

-- ----------------------------
-- Table structure for sys_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_log`;
CREATE TABLE `sys_log`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `method` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '请求方法',
  `request_url` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '请求URI',
  `params` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '请求参数',
  `result` varchar(10000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '结果',
  `ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'ip地址',
  `create_time` datetime(6) NULL DEFAULT NULL COMMENT '操作时间',
  `result_time` datetime(6) NULL DEFAULT NULL COMMENT '响应时间',
  `token` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  `session` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT 'session',
  `user_id` bigint(20) NULL DEFAULT NULL COMMENT '管理员或教师ID',
  `open_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '微信ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `token`(`token`) USING BTREE,
  INDEX `create_time`(`create_time`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '行为日志' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_log
-- ----------------------------

-- ----------------------------
-- Table structure for sys_log_text
-- ----------------------------
DROP TABLE IF EXISTS `sys_log_text`;
CREATE TABLE `sys_log_text`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `sys_id` bigint(20) NULL DEFAULT NULL,
  `params` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '请求参数',
  `result` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '结果',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_log_text
-- ----------------------------

-- ----------------------------
-- Table structure for teams
-- ----------------------------
DROP TABLE IF EXISTS `teams`;
CREATE TABLE `teams`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `deleted_at` timestamp NULL DEFAULT NULL,
  `data` json NULL,
  `name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `creator_id` int(11) NOT NULL COMMENT '创建团队的用户id',
  `leader_id` int(11) NOT NULL COMMENT '队长id',
  `end_time` timestamp NULL DEFAULT NULL COMMENT '实训结束时间',
  `class_id` int(11) NOT NULL,
  `flow_id` int(11) NOT NULL,
  `status` tinyint(4) NOT NULL DEFAULT 0,
  `examination_id` int(10) UNSIGNED NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `fk_teams_users1_idx`(`creator_id`) USING BTREE,
  INDEX `fk_teams_users2_idx`(`leader_id`) USING BTREE,
  INDEX `fk_teams_classes1_idx`(`class_id`) USING BTREE,
  INDEX `fk_teams_flows1_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '组' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of teams
-- ----------------------------
INSERT INTO `teams` VALUES (1, '2023-08-15 15:33:04', '2023-08-15 15:33:04', NULL, NULL, '必胜', 28259, 28259, '2023-08-18 00:00:00', 25, 1, 0, 7);

-- ----------------------------
-- Table structure for user_examinations
-- ----------------------------
DROP TABLE IF EXISTS `user_examinations`;
CREATE TABLE `user_examinations`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `flow_id` int(11) NOT NULL,
  `examination_id` int(11) NOT NULL,
  `user_id` int(11) NOT NULL,
  `team_id` int(11) NOT NULL,
  `financial_id` int(11) NULL DEFAULT NULL,
  `instance_id` int(11) NOT NULL,
  `status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '1：已提交实训；2：已评分；',
  `finish_time` timestamp NULL DEFAULT NULL,
  `report_file` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `report_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `flow_scores` decimal(11, 2) NULL DEFAULT NULL,
  `report_scores` decimal(11, 2) NULL DEFAULT NULL,
  `raise_scores` decimal(11, 2) NULL DEFAULT NULL,
  `duration_scores` decimal(11, 2) NULL DEFAULT NULL,
  `total_scores` decimal(11, 2) NULL DEFAULT NULL,
  `class_id` int(11) NOT NULL,
  `class_orders` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '个人排名',
  `team_orders` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '团队排名',
  `data` json NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
  `operator_scores` tinyint(4) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `user_idx`(`user_id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `class_idx`(`class_id`) USING BTREE,
  INDEX `financial_idx`(`financial_id`) USING BTREE,
  INDEX `team_idx`(`team_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户考试表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of user_examinations
-- ----------------------------
INSERT INTO `user_examinations` VALUES (1, 3, 1, 28258, 0, NULL, 1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 11:02:57', NULL, NULL);
INSERT INTO `user_examinations` VALUES (2, 1, 3, 28258, 0, NULL, 2, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"bdc\", \"step\": 24, \"roles\": [1, 2, 3, 4], \"flow_scores\": 4.17, \"apply_role_id\": 1}', '2023-08-15 11:03:04', NULL, NULL);
INSERT INTO `user_examinations` VALUES (3, 2, 4, 28258, 0, NULL, 3, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '2023-08-15 11:03:06', NULL, NULL);
INSERT INTO `user_examinations` VALUES (4, 4, 5, 28258, 0, NULL, 4, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '2023-08-15 11:03:08', NULL, NULL);
INSERT INTO `user_examinations` VALUES (5, 5, 6, 28258, 0, NULL, 5, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 20, 0, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 11:03:10', NULL, NULL);
INSERT INTO `user_examinations` VALUES (6, 3, 1, 28265, 0, NULL, 6, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 11:06:02', NULL, NULL);
INSERT INTO `user_examinations` VALUES (7, 2, 4, 28265, 0, NULL, 7, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '2023-08-15 11:06:10', NULL, NULL);
INSERT INTO `user_examinations` VALUES (8, 1, 3, 28265, 0, NULL, 8, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"bdc\", \"step\": 24, \"roles\": [1, 2, 3, 4], \"flow_scores\": 4.17, \"apply_role_id\": 1}', '2023-08-15 11:22:09', NULL, NULL);
INSERT INTO `user_examinations` VALUES (9, 3, 1, 28259, 0, NULL, 9, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 13:51:29', NULL, NULL);
INSERT INTO `user_examinations` VALUES (10, 1, 3, 28259, 0, NULL, 10, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"bdc\", \"step\": 24, \"roles\": [1, 2, 3, 4], \"flow_scores\": 4.17, \"apply_role_id\": 1}', '2023-08-15 14:22:33', NULL, NULL);
INSERT INTO `user_examinations` VALUES (11, 2, 4, 28259, 0, NULL, 11, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '2023-08-15 14:22:36', NULL, NULL);
INSERT INTO `user_examinations` VALUES (12, 4, 5, 28259, 0, NULL, 12, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '2023-08-15 14:22:39', NULL, NULL);
INSERT INTO `user_examinations` VALUES (13, 5, 6, 28259, 0, NULL, 13, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 14:22:43', NULL, NULL);
INSERT INTO `user_examinations` VALUES (14, 3, 1, 28264, 0, NULL, 14, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"chzy\", \"step\": 16, \"roles\": [2, 3, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 15:41:38', NULL, NULL);
INSERT INTO `user_examinations` VALUES (15, 5, 8, 28264, 0, NULL, 15, 2, NULL, '2023_08_15/4de5cbd1-67b2-4b6b-9de6-8ba85607c97d_2023全国金融与证券投资模拟实训大赛.pdf', '2023全国金融与证券投资模拟实训大赛.pdf', 43.75, 90.00, 60.00, 0.00, 53.90, 25, 1, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 15:53:07', '2023-08-15 16:52:59.659', 61);
INSERT INTO `user_examinations` VALUES (16, 2, 4, 28264, 0, NULL, 16, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"yszk\", \"step\": 14, \"roles\": [1, 2, 4], \"flow_scores\": 7.14, \"apply_role_id\": 2}', '2023-08-15 15:53:17', NULL, NULL);
INSERT INTO `user_examinations` VALUES (17, 4, 5, 28265, 0, NULL, 17, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '2023-08-15 16:08:18', NULL, NULL);
INSERT INTO `user_examinations` VALUES (18, 5, 8, 28259, 0, NULL, 18, 2, '2023-08-15 16:41:07', NULL, NULL, 25.00, 0.00, 60.00, 0.00, 19.40, 25, 2, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 16:39:12', '2023-08-15 16:52:59.688', 16);
INSERT INTO `user_examinations` VALUES (19, 5, 8, 28265, 0, NULL, 19, 2, '2023-08-15 16:43:21', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 25, 0, 0, NULL, '2023-08-15 16:43:21', '2023-08-15 16:52:59.697', 0);
INSERT INTO `user_examinations` VALUES (20, 5, 8, 28272, 0, NULL, 20, 2, '2023-08-15 16:43:21', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 25, 0, 0, NULL, '2023-08-15 16:43:21', '2023-08-15 16:52:59.711', 0);
INSERT INTO `user_examinations` VALUES (21, 1, 3, 28264, 0, NULL, 21, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"bdc\", \"step\": 24, \"roles\": [1, 2, 3, 4], \"flow_scores\": 4.17, \"apply_role_id\": 1}', '2023-08-15 17:32:25', NULL, NULL);
INSERT INTO `user_examinations` VALUES (22, 4, 5, 28264, 0, NULL, 22, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"zxbl\", \"step\": 15, \"roles\": [1, 2, 4], \"flow_scores\": 6.67, \"apply_role_id\": 2}', '2023-08-15 17:33:12', NULL, NULL);
INSERT INTO `user_examinations` VALUES (23, 5, 6, 28264, 0, NULL, 23, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 25, 0, 0, '{\"abbr\": \"fxbl\", \"step\": 16, \"roles\": [1, 2, 4], \"flow_scores\": 6.25, \"apply_role_id\": 2}', '2023-08-15 17:33:14', NULL, NULL);

-- ----------------------------
-- Table structure for user_teams
-- ----------------------------
DROP TABLE IF EXISTS `user_teams`;
CREATE TABLE `user_teams`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `team_id` int(11) NOT NULL,
  `roles` json NULL,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `fk_user_team_users1_idx`(`user_id`) USING BTREE,
  INDEX `fk_user_team_teams1_idx`(`team_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户组' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of user_teams
-- ----------------------------
INSERT INTO `user_teams` VALUES (1, 28259, 1, '[1]');
INSERT INTO `user_teams` VALUES (2, 28264, 1, '[2, 4]');
INSERT INTO `user_teams` VALUES (3, 28265, 1, '[3]');

-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `deleted_at` timestamp NULL DEFAULT NULL COMMENT '删除时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '更新时间',
  `data` json NULL COMMENT '智云获取用户数据',
  `ex_user_id` bigint(20) NOT NULL DEFAULT 0 COMMENT '智云用户ID',
  `class_id` bigint(20) NULL DEFAULT 0 COMMENT '班级ID',
  `type` tinyint(4) NOT NULL DEFAULT 0 COMMENT '用户类型，4是学生 ; 3是教师',
  `sex` tinyint(4) NULL DEFAULT NULL COMMENT '性别',
  `username` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用户名',
  `password` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '密码',
  `student_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '学生姓名',
  `nickname` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '昵称',
  `init_balance` decimal(65, 2) NULL DEFAULT NULL COMMENT '初始资金',
  `balance` decimal(65, 2) NULL DEFAULT NULL COMMENT '可用资金',
  `product_assets` decimal(65, 2) NULL DEFAULT NULL COMMENT '存货价值',
  `total_assets` decimal(65, 2) NULL DEFAULT NULL COMMENT '总资产',
  `core_user_id` int(11) NOT NULL COMMENT '关联core_user表的id',
  `core_org_id` int(11) NOT NULL,
  `flow_integral` json NULL COMMENT '完成业务流程积分',
  `school_id` bigint(20) NULL DEFAULT NULL COMMENT '学校ID',
  `college_id` bigint(20) NULL DEFAULT NULL COMMENT '学院ID',
  `student_id` bigint(20) NULL DEFAULT NULL COMMENT '学生ID',
  `teacher_id` bigint(20) NULL DEFAULT NULL COMMENT '教师ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `fk_users_classes_idx`(`class_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 28273 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of users
-- ----------------------------
INSERT INTO `users` VALUES (28256, '2023-04-07 11:37:04', NULL, NULL, '{\"id\": 15417, \"code\": 0, \"name\": \"gyls001\", \"roleId\": 4, \"userId\": 15417, \"classId\": 349, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"gyls001\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 14642, \"teacherId\": 0, \"logInfoNum\": 0, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"gyls001@sztzjy.com\"}', 15417, 349, 4, NULL, 'gyls001', '123qwe', NULL, 'gyls001', NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 14642, 0);
INSERT INTO `users` VALUES (28257, '2023-04-07 11:39:08', NULL, NULL, '{\"id\": 12526, \"code\": 0, \"name\": \"smt001\", \"roleId\": 3, \"userId\": 12526, \"classId\": 0, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 53, \"userName\": \"smt001\", \"userType\": 0, \"collegeId\": 67, \"studentId\": 0, \"teacherId\": 505, \"logInfoNum\": 0, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"新金融智慧学习工场2020\", \"userStatus\": false, \"emailAddress\": \"smt001@sztzjy.com\"}', 12526, 0, 3, NULL, 'smt001', '123qwe', NULL, 'smt001', NULL, NULL, NULL, NULL, 1, 1, NULL, 53, 67, 0, 505);
INSERT INTO `users` VALUES (28258, '2023-04-07 11:42:25', NULL, NULL, '{\"id\": 487, \"code\": 0, \"name\": \"嗯哼\", \"roleId\": 4, \"userId\": 487, \"classId\": 20, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzs001\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 447, \"teacherId\": 0, \"logInfoNum\": 0, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"12344569874@163.com\"}', 487, 20, 4, NULL, 'tzs001', '123qwe', NULL, '嗯哼', NULL, 4376637.67, NULL, 4376638.00, 1, 1, NULL, 1, 1, 447, 0);
INSERT INTO `users` VALUES (28259, '2023-04-07 11:49:20', NULL, NULL, '{\"id\": 492, \"code\": 0, \"name\": \"tzs006\", \"roleId\": 4, \"userId\": 492, \"classId\": 25, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzs006\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 452, \"teacherId\": 0, \"logInfoNum\": 0, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 492, 25, 4, NULL, 'tzs006', '123qwe', NULL, 'tzs006', NULL, 60984.96, NULL, 60984.91, 1, 1, NULL, 1, 1, 452, 0);
INSERT INTO `users` VALUES (28260, '2023-04-07 11:50:48', NULL, NULL, '{\"id\": 481, \"code\": 0, \"name\": \"老师1号\", \"roleId\": 3, \"userId\": 481, \"classId\": 0, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzt001\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 0, \"teacherId\": 31, \"logInfoNum\": 2, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"15811263356@163.com\"}', 481, 0, 3, NULL, 'tzt001', '123qwe', NULL, '老师1号', NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 0, 31);
INSERT INTO `users` VALUES (28261, '2023-05-04 10:29:38', NULL, NULL, '{\"id\": 488, \"code\": 0, \"name\": \"tzs002\", \"roleId\": 4, \"userId\": 488, \"classId\": 21, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzs002\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 448, \"teacherId\": 0, \"logInfoNum\": 2, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 488, 21, 4, NULL, 'tzs002', '123qwe', NULL, 'tzs002', NULL, -800378362.76, NULL, -800378368.00, 1, 1, NULL, 1, 1, 448, 0);
INSERT INTO `users` VALUES (28262, '2023-06-02 12:04:45', NULL, NULL, '{\"id\": 489, \"code\": 0, \"name\": \"tzs003\", \"roleId\": 4, \"userId\": 489, \"classId\": 22, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzs003\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 449, \"teacherId\": 0, \"logInfoNum\": 2, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 489, 22, 4, NULL, 'tzs003', '123qwe', NULL, 'tzs003', NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 449, 0);
INSERT INTO `users` VALUES (28263, '2023-06-02 12:05:01', NULL, NULL, '{\"id\": 490, \"code\": 0, \"name\": \"tzs004\", \"roleId\": 4, \"userId\": 490, \"classId\": 23, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzs004\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 450, \"teacherId\": 0, \"logInfoNum\": 1, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 490, 23, 4, NULL, 'tzs004', '123qwe', NULL, 'tzs004', NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 450, 0);
INSERT INTO `users` VALUES (28264, '2023-06-02 15:09:19', NULL, NULL, '{\"id\": 1827, \"code\": 0, \"name\": \"tzs007\", \"roleId\": 4, \"userId\": 1827, \"classId\": 25, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzs007\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 1671, \"teacherId\": 0, \"logInfoNum\": 2, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 1827, 25, 4, NULL, 'tzs007', '123qwe', NULL, 'tzs007', NULL, 959200.35, NULL, 959200.31, 1, 1, NULL, 1, 1, 1671, 0);
INSERT INTO `users` VALUES (28265, '2023-06-02 15:09:46', NULL, NULL, '{\"id\": 1829, \"code\": 0, \"name\": \"tzs009\", \"roleId\": 4, \"userId\": 1829, \"classId\": 25, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzs009\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 1675, \"teacherId\": 0, \"logInfoNum\": 0, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 1829, 25, 4, NULL, 'tzs009', '123qwe', NULL, 'tzs009', NULL, 999436.42, NULL, 999436.50, 1, 1, NULL, 1, 1, 1675, 0);
INSERT INTO `users` VALUES (28266, '2023-06-07 09:54:33', NULL, NULL, '{\"id\": 486, \"code\": 0, \"name\": \"tzt006\", \"roleId\": 3, \"userId\": 486, \"classId\": 0, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzt006\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 0, \"teacherId\": 36, \"logInfoNum\": 1, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 486, 0, 3, NULL, 'tzt006', '123qwe', NULL, 'tzt006', NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 0, 36);
INSERT INTO `users` VALUES (28267, '2023-06-07 09:55:48', NULL, NULL, '{\"id\": 482, \"code\": 0, \"name\": \"tzt002\", \"roleId\": 3, \"userId\": 482, \"classId\": 0, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzt002\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 0, \"teacherId\": 32, \"logInfoNum\": 1, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 482, 0, 3, NULL, 'tzt002', '123qwe', NULL, 'tzt002', NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 0, 32);
INSERT INTO `users` VALUES (28268, '2023-06-07 09:56:00', NULL, NULL, '{\"id\": 483, \"code\": 0, \"name\": \"tzt003\", \"roleId\": 3, \"userId\": 483, \"classId\": 0, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzt003\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 0, \"teacherId\": 33, \"logInfoNum\": 0, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 483, 0, 3, NULL, 'tzt003', '123qwe', NULL, 'tzt003', NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 0, 33);
INSERT INTO `users` VALUES (28269, '2023-06-07 09:56:37', NULL, NULL, '{\"id\": 484, \"code\": 0, \"name\": \"tzt004\", \"roleId\": 3, \"userId\": 484, \"classId\": 0, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzt004\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 0, \"teacherId\": 34, \"logInfoNum\": 1, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 484, 0, 3, NULL, 'tzt004', '123qwe', NULL, 'tzt004', NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 0, 34);
INSERT INTO `users` VALUES (28270, '2023-06-07 09:56:48', NULL, NULL, '{\"id\": 485, \"code\": 0, \"name\": \"tzt005\", \"roleId\": 3, \"userId\": 485, \"classId\": 0, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"tzt005\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 0, \"teacherId\": 35, \"logInfoNum\": 0, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 485, 0, 3, NULL, 'tzt005', '123qwe', NULL, 'tzt005', NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 0, 35);
INSERT INTO `users` VALUES (28272, '2023-07-05 17:54:16', NULL, NULL, '{\"id\": 6719, \"code\": 0, \"name\": \"纪同学\", \"roleId\": 4, \"userId\": 6719, \"classId\": 25, \"loginId\": 0, \"isBought\": 1, \"schoolId\": 1, \"userName\": \"15976852509\", \"userType\": 0, \"collegeId\": 1, \"studentId\": 6433, \"teacherId\": 0, \"logInfoNum\": 0, \"registTime\": \"0001-01-01T00:00:00\", \"schoolName\": \"天择大学\", \"userStatus\": false, \"emailAddress\": \"\"}', 6719, 25, 4, NULL, '15976852509', '123qwe', NULL, '纪同学', NULL, NULL, NULL, NULL, 1, 1, NULL, 1, 1, 6433, 0);

-- ----------------------------
-- Table structure for warehouse_receipt
-- ----------------------------
DROP TABLE IF EXISTS `warehouse_receipt`;
CREATE TABLE `warehouse_receipt`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `examination_id` int(11) NOT NULL,
  `flow_id` int(11) NOT NULL,
  `instance_id` int(11) NOT NULL DEFAULT 0,
  `send_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '发货单号',
  `in_warehouse_status` tinyint(4) NULL DEFAULT NULL COMMENT '0:已入库;1: 出具清单；2：已核定；',
  `in_warehouse_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库编号',
  `in_warehouse_start_time` timestamp NULL DEFAULT NULL COMMENT '存货开始时间',
  `in_warehouse_end_time` timestamp NULL DEFAULT NULL COMMENT '存货结束时间',
  `seller_id` int(11) NULL DEFAULT NULL COMMENT '存货人ID',
  `seller_name` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '存货人姓名',
  `yfzk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '货物总价值',
  `in_warehouse_time` timestamp NULL DEFAULT NULL COMMENT '入库时间',
  `protocol_id` int(11) NULL DEFAULT NULL COMMENT '协议ID',
  `in_warehouse_file_data` json NULL COMMENT '质物清单',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '入库管理' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of warehouse_receipt
-- ----------------------------
INSERT INTO `warehouse_receipt` VALUES (1, '2023-08-15 13:26:45', '2023-08-15 13:27:41', 3, 1, 8, '210391991172', 2, '686063394496', '2023-09-15 00:00:00', '2024-03-15 00:00:00', 59, '格力电器集团公司', NULL, '2023-09-16 00:00:00', 1, '{\"page\": 1, \"limit\": 10, \"tails\": {}, \"send_no\": \"210391991172\", \"products\": null, \"seller_id\": 59, \"express_id\": 21, \"accept_time\": \"2023-09-16 00:00:00\", \"contract_id\": 1, \"protocol_id\": 1, \"protocol_no\": \"2023081970184\", \"seller_name\": \"格力电器集团公司\", \"express_name\": \"中邮物流\", \"express_id_ok\": 21, \"express_zhang\": \"http://159.75.185.67:9090/server/api/materials/downloadSeal/21\", \"seller_account\": \"711800098541\", \"express_address\": \"广东省珠海市金湾区平沙路63号\", \"in_warehouse_no\": \"686063394496\", \"total_sell_price\": 281326, \"in_warehouse_time\": \"2023-09-16 00:00:00\", \"financing_end_time\": \"2024-03-15 00:00:00\", \"seller_name_fill_cd\": \"格力电器集团公司\", \"express_name_fill_cd\": \"中邮物流\", \"financing_start_time\": \"2023-09-15 00:00:00\", \"seller_account_fill_cd\": \"711800098541\", \"express_address_fill_cd\": \"广东省珠海市金湾区平沙路63号\", \"seller_name_fill_chr_cd\": \"格力电器集团公司\", \"total_sell_price_fill_cd\": \"281326\", \"financing_end_time_fill_cd\": \"2024-03-15 00:00:00\", \"express_corporation_fill_cd\": \"马晓\", \"financing_start_time_fill_cd\": \"2023-09-16 00:00:00\", \"total_sell_price_cap_fill_cd\": \"贰拾捌万壹仟叁佰贰拾陆元整\", \"in_warehouse_time_cap_fill_cd\": \"贰零贰叁年零玖月壹拾陆日\"}');
INSERT INTO `warehouse_receipt` VALUES (2, '2023-08-15 14:02:09', '2023-08-15 14:03:40', 1, 3, 9, '022662657825', 2, '628471652220', '2023-08-19 00:00:00', '2023-11-30 00:00:00', 24, '新力电子有限公司', 144681.00, '2023-08-19 00:00:00', 2, '{\"id\": 2, \"page\": 1, \"limit\": 10, \"tails\": {}, \"flow_id\": 3, \"send_no\": \"022662657825\", \"bank_name\": \"华夏银行\", \"seller_id\": 24, \"created_at\": \"2023-08-15 14:02:09\", \"express_id\": 22, \"instance_id\": 9, \"protocol_id\": 2, \"protocol_no\": \"20230815000003\", \"seller_name\": \"新力电子有限公司\", \"yfzk_amount\": 144681, \"express_name\": \"海格物流\", \"bank_name_fill\": \"华夏银行\", \"examination_id\": 1, \"in_warehouse_no\": \"628471652220\", \"seller_name_fill\": \"新力电子有限公司\", \"yfzk_amount_fill\": \"144681\", \"express_name_fill\": \"海格物流\", \"in_warehouse_time\": \"2023-08-19 00:00:00\", \"express_id_ok_fill\": 22, \"in_warehouse_status\": 0, \"yfzk_amount_cap_fill\": \"壹拾肆万肆仟陆佰捌拾壹元整\", \"in_warehouse_end_time\": \"2023-11-30 00:00:00\", \"in_warehouse_start_time\": \"2023-08-19 00:00:00\", \"in_warehouse_start_time_fill\": \"2023-08-20 00:00:00\"}');

-- ----------------------------
-- Table structure for warehouse_shipment
-- ----------------------------
DROP TABLE IF EXISTS `warehouse_shipment`;
CREATE TABLE `warehouse_shipment`  (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `examination_id` int(11) NOT NULL,
  `flow_id` int(11) NOT NULL,
  `instance_id` int(11) NOT NULL DEFAULT 0,
  `express_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '送货单号',
  `in_warehouse_status` tinyint(4) NULL DEFAULT NULL COMMENT '0:已入库;1: 待核定；2：已核定；',
  `pickup_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '提货单号',
  `out_warehouse_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库单号',
  `out_warehouse_user` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '出库确认人',
  `out_warehouse_time` timestamp NULL DEFAULT NULL COMMENT '出库日期',
  `out_warehouse_status` tinyint(1) NULL DEFAULT NULL COMMENT '出库状态 2已配送',
  `receipt_no` int(11) NULL DEFAULT NULL COMMENT '入库单号',
  `receipt_status` tinyint(1) NULL DEFAULT NULL COMMENT '入库状态 1待收货，2待入库，3已入库',
  `receipt_time` timestamp NULL DEFAULT NULL COMMENT '入库数据',
  `receipt_user` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入库确认人',
  `receipt_user_id` int(11) NULL DEFAULT NULL COMMENT '入库确认人ID',
  `out_warehouse_user_id` int(11) NULL DEFAULT NULL COMMENT '出库确认人ID',
  `protocol_id` int(11) NULL DEFAULT NULL COMMENT '协议ID',
  `pickup_product_id` int(11) NULL DEFAULT NULL COMMENT '提货ID',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '出库及配送' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of warehouse_shipment
-- ----------------------------
INSERT INTO `warehouse_shipment` VALUES (1, '2023-08-15 13:38:43', '2023-08-15 13:39:16', 3, 1, 8, '97918604', 0, '26552309', '20529789', 'tzs009', '2023-11-19 00:00:00', 2, 85110152, 3, '2023-11-20 00:00:00', 'tzs009', 28265, 28265, 1, 1);
INSERT INTO `warehouse_shipment` VALUES (2, '2023-08-15 13:48:06', '2023-08-15 13:48:23', 3, 1, 8, '57820803', 0, '37251943', '65113524', 'tzs009', '2024-03-14 00:00:00', 2, 81683130, 3, '2024-03-15 00:00:00', 'tzs009', 28265, 28265, 1, 2);
INSERT INTO `warehouse_shipment` VALUES (3, '2023-08-15 14:22:00', '2023-08-15 14:22:10', 1, 3, 9, '37162425', 0, '94962466', '29340931', 'tzs006', '2023-11-29 00:00:00', 2, 54529625, 3, '2023-11-30 00:00:00', 'tzs006', 28259, 28259, 2, 3);

-- ----------------------------
-- Table structure for yszk_transfer
-- ----------------------------
DROP TABLE IF EXISTS `yszk_transfer`;
CREATE TABLE `yszk_transfer`  (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `created_at` timestamp NULL DEFAULT NULL COMMENT '创建时间',
  `updated_at` timestamp NULL DEFAULT NULL COMMENT '修改时间',
  `examination_id` int(11) NOT NULL COMMENT '考核ID',
  `flow_id` int(11) NOT NULL COMMENT '流程ID',
  `instance_id` int(11) NOT NULL DEFAULT 0 COMMENT '流程实例ID',
  `bl_contract_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '保理合同编号',
  `buyer_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '买方是否确认',
  `seller_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '卖方是否确认',
  `bank_confirm` tinyint(1) NULL DEFAULT NULL COMMENT '银行是否确认',
  `yszk_amount` decimal(10, 2) NULL DEFAULT NULL COMMENT '应收账款净额',
  `yszk_no` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '应收账款编号',
  `seller_transfer_file` json NULL COMMENT '应收账款转让申请书',
  `seller_invoice_file` json NULL COMMENT '增值税发票',
  `seller_transfer_notice_file` json NULL COMMENT '应收账款债权转让通知书',
  `transfer_status` tinyint(1) NULL DEFAULT NULL COMMENT '转移状态 0新增数据 1卖方确认 2银行确认 3买方确认',
  `buyer_transfer_file` json NULL COMMENT '应收账款转让通知书回执',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `examination_idx`(`examination_id`) USING BTREE,
  INDEX `instance_idx`(`instance_id`) USING BTREE,
  INDEX `flow_idx`(`flow_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '应收账款转让' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of yszk_transfer
-- ----------------------------
INSERT INTO `yszk_transfer` VALUES (1, '2023-08-15 15:20:26', '2023-08-15 15:24:53', 5, 4, 12, '20230815731146', 1, 1, 1, NULL, NULL, '{\"id\": 4, \"page\": 1, \"limit\": 10, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"2082003126\", \"buyer_id\": 41, \"can_levy\": false, \"accept_no\": \"7232752056\", \"bank_name\": \"华夏银行\", \"seller_id\": 40, \"apply_rate\": 7.02, \"buyer_name\": \"太平鸟服饰有限公司\", \"can_commit\": false, \"created_at\": \"2023-08-15 15:11:36\", \"updated_at\": \"2023-08-15 15:11:48\", \"bail_status\": 0, \"contract_id\": 3, \"contract_no\": \"2023081500005\", \"instance_id\": 12, \"seller_name\": \"兰辉服装有限责任公司\", \"yfzk_amount\": 90000, \"apply_amount\": 80000, \"apply_status\": 1, \"bank_address\": \"深圳市南山区沙河路152号\", \"bank_confirm\": 1, \"accept_amount\": 80000, \"buyer_address\": \"广东省深圳市宝安区建安路236号\", \"commit_status\": 0, \"contract_time\": \"2023-08-15 15:04:50\", \"bank_telephone\": \"0755-25103214\", \"bl_contract_no\": \"20230815731146\", \"examination_id\": 5, \"financing_type\": 4, \"seller_address\": \"深圳市宝安区松岗路521号\", \"seller_confirm\": 1, \"buyer_telephone\": \"0755-25103621\", \"contract_amount\": 91074, \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"{\\\"id\\\": 1, \\\"page\\\": 1, \\\"limit\\\": 10, \\\"tails\\\": {}, \\\"bank_id\\\": 11, \\\"flow_id\\\": 4, \\\"role_id\\\": 0, \\\"apply_no\\\": \\\"2082003126\\\", \\\"buyer_id\\\": 41, \\\"can_levy\\\": false, \\\"accept_no\\\": \\\"7232752056\\\", \\\"bank_name\\\": \\\"华夏银行\\\", \\\"seller_id\\\": 40, \\\"send_time\\\": \\\"2023-08-15 15:06:02\\\", \\\"apply_rate\\\": 7.02, \\\"buyer_name\\\": \\\"太平鸟服饰有限公司\\\", \\\"can_commit\\\": false, \\\"created_at\\\": \\\"2023-08-15 15:13:45\\\", \\\"updated_at\\\": \\\"2023-08-15 15:13:48\\\", \\\"yifang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/40\\\", \\\"bail_status\\\": 0, \\\"contract_id\\\": \\\"3\\\", \\\"contract_no\\\": \\\"2023081500005\\\", \\\"instance_id\\\": 12, \\\"jiafang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\\\", \\\"seller_name\\\": \\\"兰辉服装有限责任公司\\\", \\\"yfzk_amount\\\": 90000, \\\"apply_amount\\\": 80000, \\\"apply_status\\\": 1, \\\"bank_confirm\\\": 1, \\\"accept_amount\\\": 80000, \\\"commit_status\\\": 0, \\\"bl_contract_no\\\": \\\"20230815731146\\\", \\\"examination_id\\\": 5, \\\"financing_type\\\": 4, \\\"bank_id_fill_bl\\\": 11, \\\"contract_amount\\\": 91074, \\\"bank_corporation\\\": \\\"关文洁\\\", \\\"bl_contract_file\\\": \\\"\\\", \\\"bl_contract_time\\\": \\\"2023-08-18 00:00:00\\\", \\\"contract_account\\\": \\\"622712345678\\\", \\\"financing_months\\\": 3, \\\"financing_status\\\": 0, \\\"max_apply_amount\\\": 81000, \\\"repayment_amount\\\": 0, \\\"bank_name_fill_bl\\\": \\\"华夏银行\\\", \\\"seller_id_fill_bl\\\": 40, \\\"apply_rate_fill_bl\\\": \\\"7.02%\\\", \\\"bl_contract_status\\\": 1, \\\"financing_end_time\\\": \\\"2023-11-30 00:00:00\\\", \\\"seller_corporation\\\": \\\"曹武\\\", \\\"apply_poundage_rate\\\": \\\"0.5%\\\", \\\"examination_inst_id\\\": 12, \\\"seller_name_fill_bl\\\": \\\"兰辉服装有限责任公司\\\", \\\"bank_address_fill_bl\\\": \\\"深圳市南山区沙河路152号\\\", \\\"financing_start_time\\\": \\\"2023-08-30 00:00:00\\\", \\\"accept_amount_fill_bl\\\": \\\"80000\\\", \\\"seller_address_fill_bl\\\": \\\"深圳市宝安区松岗路521号\\\", \\\"bank_corporation_fill_bl\\\": \\\"关文洁\\\", \\\"seller_corporation_fill_bl\\\": \\\"曹武\\\", \\\"accept_amount_capital_fill_bl\\\": \\\"捌万元整\\\"}\", \"bl_contract_time\": \"2023-08-18 00:00:00\", \"contract_account\": \"622712345678\", \"financing_months\": 3, \"financing_status\": 0, \"max_apply_amount\": 81000, \"repayment_amount\": 0, \"seller_telephone\": \"0755-62031541\", \"buyer_corporation\": \"张江萍\", \"bank_name_fill_sqs\": \"华夏银行\", \"bl_contract_status\": 2, \"financing_end_time\": \"2023-11-30 00:00:00\", \"seller_corporation\": \"曹武\", \"apply_poundage_rate\": \"0.5%\", \"buyer_name_fill_sqs\": \"太平鸟服饰有限公司\", \"invoice_no_fill_sqs\": \"12345678\", \"contract_no_fill_sqs\": \"2023081500005\", \"financing_start_time\": \"2023-08-30 00:00:00\", \"seller_name_fill_sqs\": \"兰辉服装有限责任公司\", \"yfzk_amount_fill_sqs\": \"90000\", \"seller_id_ok_fill_sqs\": 40, \"buyer_address_fill_sqs\": \"广东省深圳市宝安区建安路236号\", \"contract_time_fill_sqs\": \"2023-08-15 15:15:27\", \"bl_contract_no_fill_sqs\": \"20230815731146\", \"buyer_telephone_fill_sqs\": \"0755-25103621\", \"contract_amount_fill_sqs\": \"91074\", \"bl_contract_time_fill_sqs\": \"2023-08-18 00:00:23\", \"buyer_corporation_fill_sqs\": \"张江萍\", \"financing_end_time_fill_sqs\": \"2023-11-30 00:00:00\", \"bl_contract_time_lk_fill_sqs\": \"2023-08-19 00:00:00\"}', NULL, '{\"id\": 1, \"page\": 1, \"limit\": 10, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"2082003126\", \"buyer_id\": 41, \"can_levy\": false, \"accept_no\": \"7232752056\", \"bank_name\": \"华夏银行\", \"seller_id\": 40, \"apply_rate\": 7.02, \"buyer_name\": \"太平鸟服饰有限公司\", \"can_commit\": false, \"created_at\": \"2023-08-15 15:11:36\", \"invoice_no\": \"12345678\", \"updated_at\": \"2023-08-15 15:11:48\", \"bail_status\": 0, \"contract_id\": 3, \"contract_no\": \"2023081500005\", \"instance_id\": 12, \"notify_time\": \"2023-08-22 00:00:00\", \"seller_name\": \"兰辉服装有限责任公司\", \"yfzk_amount\": \"90000\", \"apply_amount\": 80000, \"apply_status\": 1, \"bank_address\": \"深圳市南山区沙河路152号\", \"bank_confirm\": 1, \"bank_name_f1\": \"华夏银行\", \"bank_name_f2\": \"华夏银行\", \"bank_name_f3\": \"华夏银行\", \"bank_name_f4\": \"华夏银行\", \"bank_name_f5\": \"华夏银行\", \"bank_name_f6\": \"华夏银行\", \"bank_name_f7\": \"兰辉服装有限责任公司\", \"bank_name_f8\": \"华夏银行\", \"bank_name_f9\": \"华夏银行\", \"seller_id_ok\": 40, \"accept_amount\": 80000, \"bank_name_f10\": \"华夏银行\", \"bank_name_f11\": \"华夏银行\", \"bank_name_f12\": \"华夏银行\", \"buyer_account\": \"7718002531025\", \"buyer_address\": \"广东省深圳市宝安区建安路236号\", \"buyer_name_f1\": \"太平鸟服饰有限公司\", \"commit_status\": 0, \"contract_time\": \"2023-08-15 15:17:44\", \"bank_telephone\": \"0755-25103214\", \"bl_contract_no\": \"20230815731146\", \"contract_no_f1\": \"2023081500005\", \"examination_id\": 5, \"financing_type\": 4, \"seller_account\": \"770023695021\", \"seller_address\": \"深圳市宝安区松岗路521号\", \"seller_confirm\": 1, \"seller_name_f1\": \"兰辉服装有限责任公司\", \"buyer_bank_name\": \"华夏银行\", \"buyer_telephone\": \"0755-25103621\", \"contract_amount\": \"91074\", \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"{\\\"id\\\": 1, \\\"page\\\": 1, \\\"limit\\\": 10, \\\"tails\\\": {}, \\\"bank_id\\\": 11, \\\"flow_id\\\": 4, \\\"role_id\\\": 0, \\\"apply_no\\\": \\\"2082003126\\\", \\\"buyer_id\\\": 41, \\\"can_levy\\\": false, \\\"accept_no\\\": \\\"7232752056\\\", \\\"bank_name\\\": \\\"华夏银行\\\", \\\"seller_id\\\": 40, \\\"send_time\\\": \\\"2023-08-15 15:06:02\\\", \\\"apply_rate\\\": 7.02, \\\"buyer_name\\\": \\\"太平鸟服饰有限公司\\\", \\\"can_commit\\\": false, \\\"created_at\\\": \\\"2023-08-15 15:13:45\\\", \\\"updated_at\\\": \\\"2023-08-15 15:13:48\\\", \\\"yifang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/40\\\", \\\"bail_status\\\": 0, \\\"contract_id\\\": \\\"3\\\", \\\"contract_no\\\": \\\"2023081500005\\\", \\\"instance_id\\\": 12, \\\"jiafang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\\\", \\\"seller_name\\\": \\\"兰辉服装有限责任公司\\\", \\\"yfzk_amount\\\": 90000, \\\"apply_amount\\\": 80000, \\\"apply_status\\\": 1, \\\"bank_confirm\\\": 1, \\\"accept_amount\\\": 80000, \\\"commit_status\\\": 0, \\\"bl_contract_no\\\": \\\"20230815731146\\\", \\\"examination_id\\\": 5, \\\"financing_type\\\": 4, \\\"bank_id_fill_bl\\\": 11, \\\"contract_amount\\\": 91074, \\\"bank_corporation\\\": \\\"关文洁\\\", \\\"bl_contract_file\\\": \\\"\\\", \\\"bl_contract_time\\\": \\\"2023-08-18 00:00:00\\\", \\\"contract_account\\\": \\\"622712345678\\\", \\\"financing_months\\\": 3, \\\"financing_status\\\": 0, \\\"max_apply_amount\\\": 81000, \\\"repayment_amount\\\": 0, \\\"bank_name_fill_bl\\\": \\\"华夏银行\\\", \\\"seller_id_fill_bl\\\": 40, \\\"apply_rate_fill_bl\\\": \\\"7.02%\\\", \\\"bl_contract_status\\\": 1, \\\"financing_end_time\\\": \\\"2023-11-30 00:00:00\\\", \\\"seller_corporation\\\": \\\"曹武\\\", \\\"apply_poundage_rate\\\": \\\"0.5%\\\", \\\"examination_inst_id\\\": 12, \\\"seller_name_fill_bl\\\": \\\"兰辉服装有限责任公司\\\", \\\"bank_address_fill_bl\\\": \\\"深圳市南山区沙河路152号\\\", \\\"financing_start_time\\\": \\\"2023-08-30 00:00:00\\\", \\\"accept_amount_fill_bl\\\": \\\"80000\\\", \\\"seller_address_fill_bl\\\": \\\"深圳市宝安区松岗路521号\\\", \\\"bank_corporation_fill_bl\\\": \\\"关文洁\\\", \\\"seller_corporation_fill_bl\\\": \\\"曹武\\\", \\\"accept_amount_capital_fill_bl\\\": \\\"捌万元整\\\"}\", \"bl_contract_time\": \"2023-08-18 00:00:00\", \"contract_account\": \"622712345678\", \"contract_time_f1\": \"2023-08-15 15:18:39\", \"financing_months\": 3, \"financing_status\": 0, \"max_apply_amount\": 81000, \"repayment_amount\": 0, \"seller_bank_name\": \"华夏银行\", \"seller_telephone\": \"0755-62031541\", \"buyer_corporation\": \"张江萍\", \"bank_name_fill_sqs\": \"华夏银行\", \"bank_name_fill_tzs\": \"华夏银行\", \"bl_contract_status\": 2, \"financing_end_time\": \"2023-11-30 00:00:00\", \"seller_corporation\": \"曹武\", \"apply_poundage_rate\": \"0.5%\", \"bank_id_ok_fill_tzs\": 11, \"buyer_name_fill_sqs\": \"太平鸟服饰有限公司\", \"buyer_name_fill_tzs\": \"太平鸟服饰有限公司\", \"invoice_no_fill_sqs\": \"12345678\", \"invoice_no_fill_tzs\": \"12345678\", \"contract_no_fill_tzs\": \"2023081500005\", \"financing_start_time\": \"2023-08-30 00:00:00\", \"notify_time_fill_tzs\": \"2023-08-22 00:00:00\", \"seller_name_fill_tzs\": \"兰辉服装有限责任公司\", \"yfzk_amount_fill_tzs\": \"90000\", \"bank_name_f1_fill_tzs\": \"华夏银行\", \"bank_name_f2_fill_tzs\": \"华夏银行\", \"bank_name_f3_fill_tzs\": \"华夏银行\", \"bank_name_f4_fill_tzs\": \"华夏银行\", \"bank_name_f5_fill_tzs\": \"华夏银行\", \"bank_name_f6_fill_tzs\": \"华夏银行\", \"bank_name_f7_fill_tzs\": \"兰辉服装有限责任公司\", \"bank_name_f8_fill_tzs\": \"华夏银行\", \"bank_name_f9_fill_tzs\": \"华夏银行\", \"seller_id_ok_fill_tzs\": 40, \"bank_name_f10_fill_tzs\": \"华夏银行\", \"bank_name_f11_fill_tzs\": \"华夏银行\", \"bank_name_f12_fill_tzs\": \"华夏银行\", \"buyer_address_fill_sqs\": \"广东省深圳市宝安区建安路236号\", \"buyer_address_fill_tzs\": \"广东省深圳市宝安区建安路236号\", \"buyer_name_f1_fill_tzs\": \"太平鸟服饰有限公司\", \"contract_time_fill_tzs\": \"2023-08-15 15:17:44\", \"bl_contract_no_fill_sqs\": \"20230815731146\", \"bl_contract_no_fill_tzs\": \"20230815731146\", \"contract_no_f1_fill_tzs\": \"2023081500005\", \"contract_no_fill_tzs_02\": \"2023081500005\", \"seller_name_f1_fill_tzs\": \"兰辉服装有限责任公司\", \"buyer_telephone_fill_sqs\": \"0755-25103621\", \"buyer_telephone_fill_tzs\": \"0755-25103621\", \"contract_amount_fill_tzs\": \"91074\", \"bl_contract_time_fill_sqs\": \"2023-08-18 00:00:23\", \"bl_contract_time_fill_tzs\": \"2023-08-18 00:00:00\", \"contract_account_fill_tzs\": \"622712345678\", \"contract_time_f1_fill_tzs\": \"2023-08-15 15:18:39\", \"buyer_corporation_fill_sqs\": \"张江萍\", \"buyer_corporation_fill_tzs\": \"张江萍\", \"financing_end_time_fill_tzs\": \"2023-11-30 00:00:00\", \"bl_contract_time_lk_fill_sqs\": \"2023-08-19 00:00:00\", \"financing_start_time_fill_tzs\": \"2023-08-30 00:00:00\"}', 3, '{\"id\": 1, \"page\": 1, \"limit\": 10, \"tails\": {}, \"bank_id\": 11, \"flow_id\": 4, \"role_id\": 0, \"apply_no\": \"2082003126\", \"buyer_id\": 41, \"can_levy\": false, \"accept_no\": \"7232752056\", \"bank_name\": \"华夏银行\", \"seller_id\": 40, \"apply_rate\": 7.02, \"buyer_name\": \"太平鸟服饰有限公司\", \"can_commit\": false, \"created_at\": \"2023-08-15 15:11:36\", \"invoice_no\": \"12345678\", \"updated_at\": \"2023-08-15 15:11:48\", \"bail_status\": 0, \"contract_id\": 3, \"contract_no\": \"2023081500005\", \"instance_id\": 12, \"notify_time\": \"2023-08-22 00:00:00\", \"seller_name\": \"兰辉服装有限责任公司\", \"yfzk_amount\": 90000, \"apply_amount\": 80000, \"apply_status\": 1, \"bank_address\": \"深圳市南山区沙河路152号\", \"bank_confirm\": 1, \"bank_name_f1\": \"华夏银行\", \"bank_name_f2\": \"华夏银行\", \"bank_name_f3\": \"华夏银行\", \"bank_name_f4\": \"华夏银行\", \"bank_name_f5\": \"华夏银行\", \"bank_name_f6\": \"华夏银行\", \"bank_name_f7\": \"兰辉服装有限责任公司\", \"bank_name_f8\": \"华夏银行\", \"bank_name_f9\": \"华夏银行\", \"seller_id_ok\": 40, \"accept_amount\": 80000, \"bank_name_f10\": \"华夏银行\", \"bank_name_f11\": \"华夏银行\", \"bank_name_f12\": \"华夏银行\", \"buyer_account\": \"7718002531025\", \"buyer_address\": \"广东省深圳市宝安区建安路236号\", \"buyer_name_f1\": \"太平鸟服饰有限公司\", \"commit_status\": 0, \"contract_time\": \"2023-08-15 15:17:44\", \"bank_telephone\": \"0755-25103214\", \"bl_contract_no\": 20230815731146, \"contract_no_f1\": \"2023081500005\", \"examination_id\": 5, \"financing_type\": 4, \"seller_account\": \"770023695021\", \"seller_address\": \"深圳市宝安区松岗路521号\", \"seller_confirm\": 1, \"seller_name_f1\": \"兰辉服装有限责任公司\", \"buyer_bank_name\": \"华夏银行\", \"buyer_telephone\": \"0755-25103621\", \"contract_amount\": 91074, \"transfer_status\": 2, \"bank_corporation\": \"关文洁\", \"bl_contract_file\": \"{\\\"id\\\": 1, \\\"page\\\": 1, \\\"limit\\\": 10, \\\"tails\\\": {}, \\\"bank_id\\\": 11, \\\"flow_id\\\": 4, \\\"role_id\\\": 0, \\\"apply_no\\\": \\\"2082003126\\\", \\\"buyer_id\\\": 41, \\\"can_levy\\\": false, \\\"accept_no\\\": \\\"7232752056\\\", \\\"bank_name\\\": \\\"华夏银行\\\", \\\"seller_id\\\": 40, \\\"send_time\\\": \\\"2023-08-15 15:06:02\\\", \\\"apply_rate\\\": 7.02, \\\"buyer_name\\\": \\\"太平鸟服饰有限公司\\\", \\\"can_commit\\\": false, \\\"created_at\\\": \\\"2023-08-15 15:13:45\\\", \\\"updated_at\\\": \\\"2023-08-15 15:13:48\\\", \\\"yifang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/40\\\", \\\"bail_status\\\": 0, \\\"contract_id\\\": \\\"3\\\", \\\"contract_no\\\": \\\"2023081500005\\\", \\\"instance_id\\\": 12, \\\"jiafang_png\\\": \\\"http://159.75.185.67:9090/server/api/materials/downloadSeal/11\\\", \\\"seller_name\\\": \\\"兰辉服装有限责任公司\\\", \\\"yfzk_amount\\\": 90000, \\\"apply_amount\\\": 80000, \\\"apply_status\\\": 1, \\\"bank_confirm\\\": 1, \\\"accept_amount\\\": 80000, \\\"commit_status\\\": 0, \\\"bl_contract_no\\\": \\\"20230815731146\\\", \\\"examination_id\\\": 5, \\\"financing_type\\\": 4, \\\"bank_id_fill_bl\\\": 11, \\\"contract_amount\\\": 91074, \\\"bank_corporation\\\": \\\"关文洁\\\", \\\"bl_contract_file\\\": \\\"\\\", \\\"bl_contract_time\\\": \\\"2023-08-18 00:00:00\\\", \\\"contract_account\\\": \\\"622712345678\\\", \\\"financing_months\\\": 3, \\\"financing_status\\\": 0, \\\"max_apply_amount\\\": 81000, \\\"repayment_amount\\\": 0, \\\"bank_name_fill_bl\\\": \\\"华夏银行\\\", \\\"seller_id_fill_bl\\\": 40, \\\"apply_rate_fill_bl\\\": \\\"7.02%\\\", \\\"bl_contract_status\\\": 1, \\\"financing_end_time\\\": \\\"2023-11-30 00:00:00\\\", \\\"seller_corporation\\\": \\\"曹武\\\", \\\"apply_poundage_rate\\\": \\\"0.5%\\\", \\\"examination_inst_id\\\": 12, \\\"seller_name_fill_bl\\\": \\\"兰辉服装有限责任公司\\\", \\\"bank_address_fill_bl\\\": \\\"深圳市南山区沙河路152号\\\", \\\"financing_start_time\\\": \\\"2023-08-30 00:00:00\\\", \\\"accept_amount_fill_bl\\\": \\\"80000\\\", \\\"seller_address_fill_bl\\\": \\\"深圳市宝安区松岗路521号\\\", \\\"bank_corporation_fill_bl\\\": \\\"关文洁\\\", \\\"seller_corporation_fill_bl\\\": \\\"曹武\\\", \\\"accept_amount_capital_fill_bl\\\": \\\"捌万元整\\\"}\", \"bl_contract_time\": \"2023-08-18 00:00:00\", \"contract_account\": \"622712345678\", \"contract_time_f1\": \"2023-08-15 15:18:39\", \"financing_months\": 3, \"financing_status\": 0, \"max_apply_amount\": 81000, \"repayment_amount\": 0, \"seller_bank_name\": \"华夏银行\", \"seller_telephone\": \"0755-62031541\", \"bank_name_fill_hz\": \"华夏银行\", \"buyer_corporation\": \"张江萍\", \"bank_name_fill_sqs\": \"华夏银行\", \"bank_name_fill_tzs\": \"华夏银行\", \"bl_contract_status\": 2, \"buyer_name_fill_hz\": \"太平鸟服饰有限公司\", \"financing_end_time\": \"2023-11-30 00:00:00\", \"reply_time_fill_hz\": \"2023-08-22 00:00:00\", \"seller_corporation\": \"曹武\", \"apply_poundage_rate\": \"0.5%\", \"bank_id_ok_fill_tzs\": 11, \"buyer_id_ok_fill_hz\": 41, \"buyer_name_fill_sqs\": \"太平鸟服饰有限公司\", \"buyer_name_fill_tzs\": \"太平鸟服饰有限公司\", \"contract_no_fill_hz\": \"2023081500005\", \"invoice_no_fill_sqs\": \"12345678\", \"invoice_no_fill_tzs\": \"12345678\", \"seller_name_fill_hz\": \"兰辉服装有限责任公司\", \"bank_name_f2_fill_hz\": \"华夏银行\", \"bank_name_f3_fill_hz\": \"华夏银行\", \"bank_name_f4_fill_hz\": \"华夏银行\", \"bank_name_f5_fill_hz\": \"华夏银行\", \"bank_name_fs_fill_hz\": \"华夏银行\", \"contract_no_fill_tzs\": \"2023081500005\", \"financing_start_time\": \"2023-08-30 00:00:00\", \"notify_time_fill_tzs\": \"2023-08-22 00:00:00\", \"seller_name_fill_tzs\": \"兰辉服装有限责任公司\", \"yfzk_amount_fill_tzs\": \"90000\", \"bank_name_f1_fill_tzs\": \"华夏银行\", \"bank_name_f2_fill_tzs\": \"华夏银行\", \"bank_name_f3_fill_tzs\": \"华夏银行\", \"bank_name_f4_fill_tzs\": \"华夏银行\", \"bank_name_f5_fill_tzs\": \"华夏银行\", \"bank_name_f6_fill_tzs\": \"华夏银行\", \"bank_name_f7_fill_tzs\": \"兰辉服装有限责任公司\", \"bank_name_f8_fill_tzs\": \"华夏银行\", \"bank_name_f9_fill_tzs\": \"华夏银行\", \"bank_name_khh_fill_hz\": \"华夏银行\", \"buyer_address_fill_hz\": \"广东省深圳市宝安区建安路236号\", \"buyer_name_f3_fill_hz\": \"太平鸟服饰有限公司\", \"contract_time_fill_hz\": \"2023-08-15 15:22:28\", \"seller_id_ok_fill_tzs\": 40, \"bank_name_f10_fill_tzs\": \"华夏银行\", \"bank_name_f11_fill_tzs\": \"华夏银行\", \"bank_name_f12_fill_tzs\": \"华夏银行\", \"bl_contract_no_fill_hz\": \"\\t 20230815731146\", \"buyer_address_fill_sqs\": \"广东省深圳市宝安区建安路236号\", \"buyer_address_fill_tzs\": \"广东省深圳市宝安区建安路236号\", \"buyer_name_f1_fill_tzs\": \"太平鸟服饰有限公司\", \"contract_time_fill_tzs\": \"2023-08-15 15:17:44\", \"seller_account_fill_hz\": \"622712345678\", \"seller_name_f2_fill_hz\": \"兰辉服装有限责任公司\", \"seller_name_fs_fill_hz\": \"兰辉服装有限责任公司\", \"bl_contract_no_fill_sqs\": \"20230815731146\", \"bl_contract_no_fill_tzs\": \"20230815731146\", \"buyer_telephone_fill_hz\": \"0755-25103621\", \"contract_no_f1_fill_tzs\": \"2023081500005\", \"contract_no_fill_tzs_02\": \"2023081500005\", \"seller_name_f1_fill_tzs\": \"兰辉服装有限责任公司\", \"bl_contract_time_fill_hz\": \"2023-08-22 00:00:00\", \"buyer_telephone_fill_sqs\": \"0755-25103621\", \"buyer_telephone_fill_tzs\": \"0755-25103621\", \"contract_amount_fill_tzs\": \"91074\", \"bl_contract_time_fill_sqs\": \"2023-08-18 00:00:23\", \"bl_contract_time_fill_tzs\": \"2023-08-18 00:00:00\", \"buyer_corporation_fill_hz\": \"张江萍\", \"contract_account_fill_tzs\": \"622712345678\", \"contract_time_f1_fill_tzs\": \"2023-08-15 15:18:39\", \"buyer_corporation_fill_sqs\": \"张江萍\", \"buyer_corporation_fill_tzs\": \"张江萍\", \"seller_corporation_fill_hz\": \"兰辉服装有限责任公司\", \"financing_end_time_fill_tzs\": \"2023-11-30 00:00:00\", \"seller_transfer_notice_file\": \"\", \"bl_contract_time_lk_fill_sqs\": \"2023-08-19 00:00:00\", \"buyer_corporation_fs_fill_hz\": \"张江萍\", \"financing_start_time_fill_tzs\": \"2023-08-30 00:00:00\"}');

SET FOREIGN_KEY_CHECKS = 1;
