/*
Navicat MySQL Data Transfer

Source Server         : test1
Source Server Version : 50643
Source Host           : 172.17.5.17:31548
Source Database       : baa_pay_1.0

Target Server Type    : MYSQL
Target Server Version : 50643
File Encoding         : 65001

Date: 2021-09-24 20:16:46
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for account
-- ----------------------------
DROP TABLE IF EXISTS `account`;
CREATE TABLE `account` (
  `ACCOUNT_ID` bigint(19) NOT NULL COMMENT '账户ID',
  `INSTITUTION_ID` char(4) NOT NULL COMMENT '机构ID',
  `PRODUCT_ID` char(4) NOT NULL COMMENT '产品ID',
  `PROTOCOL_RULE` char(4) DEFAULT NULL COMMENT '方案规则',
  `ACCT_TYPE_ID` char(4) NOT NULL COMMENT '账户类型',
  `CURRENT_CYCLE_NO` smallint(4) NOT NULL COMMENT '当前周期号',
  `CURRENCY_CODE` char(3) NOT NULL COMMENT '币种',
  `MANUAL_STATUS` char(4) DEFAULT NULL COMMENT '手动状态码',
  `MANUAL_STATUS_DATE` int(8) DEFAULT NULL COMMENT '手动状态设置时间',
  `AUTO_STATUS` char(4) NOT NULL COMMENT '自动状态码',
  `AUTO_STATUS_DATE` int(8) NOT NULL COMMENT '自动状态设置时间',
  `OPEN_DATE` int(8) NOT NULL COMMENT '开户日期',
  `CORPOTATE_ACCT_FLAG` char(1) NOT NULL COMMENT '公司账户标志(Y/N)',
  `ACCOUNT_REF_NO` char(32) NOT NULL COMMENT '账户参考号(无特殊使用ACCOUNT_ID)',
  `EXTERNAL_ACCT_NO` varchar(32) DEFAULT NULL COMMENT '外部系统账户号',
  `AUTO_PAYMENT_FLAG` char(1) NOT NULL COMMENT '自动还款标志(Y/N)',
  `AUTO_PAYMENT_WARN_DATE` int(8) NOT NULL COMMENT '自动还款提示日期(19700101:默认)',
  `TXN_NO` int(11) NOT NULL COMMENT '交易号',
  `NEXT_TXN_NO` int(8) NOT NULL COMMENT '下一个交易号',
  `TOTAL_CREDIT` decimal(17,2) NOT NULL COMMENT '贷记总计金额(0:默认)',
  `TOTAL_DEBIT` decimal(17,2) NOT NULL COMMENT '借记总计金额(0:默认)',
  `CREDIT_TXN_COUNT` int(9) NOT NULL COMMENT '贷记交易笔数(0:默认值)',
  `DEBIT_TXT_COUNT` int(9) NOT NULL COMMENT '借记交易笔数(0:默认值)',
  `DESC_TEXT` varchar(400) DEFAULT NULL COMMENT '描述',
  `CREATED_BY` varchar(72) NOT NULL COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(72) NOT NULL COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `PARTITION_KEY` smallint(4) NOT NULL COMMENT '分区键',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`ACCOUNT_ID`),
  UNIQUE KEY `UK_IDS` (`INSTITUTION_ID`,`ACCOUNT_REF_NO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='账户\r\n\r\nSTATEMENT_FREQ_NO：指定n个周期出账单。STATEMENT_FREQ为''NCYC''，该项必须有值，否则为0。\r\nLAST_DLQ_DAYS：不包括当期，从LAST_DLQ_DATE开始算起。\r\nFIXED_PAYMENT_AMOUNT：如果FIXED_PAYMENT_UNTIL_DATE 大于今天，Min Payment.MIN_PAY_CALC_METHOD为''FMIN''，使用FIXED_PAYMENT_AMOUNT代替最小还款金额。\r\nMULTIPLE_ACCOUNTS_FLG：如果Min Payment.MIN_PAY_CALC_METHOD为''%-HI''，取此值为余额计算基数。如果此值为''N''只同步当前账户最高余额。';

-- ----------------------------
-- Records of account
-- ----------------------------
INSERT INTO `account` VALUES ('75956717762838633', 'YXM', 'LDW', null, 'EMPS', '1', 'CNY', null, null, 'NORM', '20210923', '20210923', 'N', '777777', '777777', 'N', '19700101', '4', '5', '0.00', '0.00', '0', '0', null, 'SYS', '2021-09-23 10:32:15', 'SYS', '2021-09-23 11:55:02', '4', '105', null, null, null);
INSERT INTO `account` VALUES ('75958421027815495', 'YXM', 'LDW', null, 'EMPS', '1', 'CNY', null, null, 'NORM', '20210923', '20210923', 'N', '000008', '000008', 'N', '19700101', '10', '11', '0.00', '0.00', '0', '0', null, 'SYS', '2021-09-23 17:45:34', 'SYS', '2021-09-24 20:03:34', '10', '71', null, null, null);

-- ----------------------------
-- Table structure for batch_cycle_trigger
-- ----------------------------
DROP TABLE IF EXISTS `batch_cycle_trigger`;
CREATE TABLE `batch_cycle_trigger` (
  `TRIGGER_ID` bigint(19) NOT NULL,
  `TARGET_ID` bigint(19) NOT NULL,
  `ENTITY_CODE` char(4) NOT NULL,
  `ACCOUNT_ID` bigint(19) NOT NULL,
  `PAY_DUE_TIME` bigint(14) NOT NULL,
  `NOTIFY_URL` varchar(1000) NOT NULL,
  `CHAN_NOTIFY_STATUS` char(4) NOT NULL,
  `CHAN_NOTIFY_TIME` datetime DEFAULT NULL,
  `MCH_NOTIFY_STATUS` char(4) NOT NULL,
  `MCH_NOTIFY_TIME` datetime DEFAULT NULL,
  `REQUEST_ID` char(64) DEFAULT NULL,
  `PARTITION_KEY` smallint(4) NOT NULL COMMENT '分区键',
  `CREATED_BY` varchar(32) NOT NULL COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(32) NOT NULL COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`TRIGGER_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of batch_cycle_trigger
-- ----------------------------
INSERT INTO `batch_cycle_trigger` VALUES ('75752798662426628', '75752798661246978', 'PYMT', '75958421027815495', '20210924203333', 'http://127.0.0.1:8080/notifyUrl', 'PEND', null, 'PEND', null, '20210924722113463207861227310', '71', 'SYS', '2021-09-24 20:03:34', 'SYS', '2021-09-24 20:03:34', '1', null, null, null);

-- ----------------------------
-- Table structure for dictionary
-- ----------------------------
DROP TABLE IF EXISTS `dictionary`;
CREATE TABLE `dictionary` (
  `ID` bigint(20) NOT NULL AUTO_INCREMENT,
  `TYPE` varchar(32) NOT NULL,
  `CODE` varchar(32) NOT NULL,
  `TEXT` varchar(64) NOT NULL,
  `VALUE` varchar(500) NOT NULL,
  `PARENT_ID` int(255) NOT NULL,
  `IMAGE_URL` varchar(500) DEFAULT NULL,
  `CREATED_BY` varchar(32) NOT NULL DEFAULT 'SYS' COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(32) NOT NULL DEFAULT 'SYS' COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of dictionary
-- ----------------------------
INSERT INTO `dictionary` VALUES ('1', 'PAY', 'ROOT', '支付通道商', '', '0', null, 'SYS', '2021-09-23 10:59:48', 'SYS', '2021-09-23 11:24:40', '0', null, null, null);
INSERT INTO `dictionary` VALUES ('2', 'PAY', 'ALIP', '支付宝', '', '1', null, 'SYS', '2021-08-23 19:34:54', 'SYS', '2021-09-23 11:24:38', '0', null, null, null);
INSERT INTO `dictionary` VALUES ('3', 'PAY', 'WXP', '微信', '', '1', null, 'SYS', '2021-08-23 19:33:58', 'SYS', '2021-09-23 11:24:35', '0', null, null, null);
INSERT INTO `dictionary` VALUES ('4', 'WXP_STAT', 'ROOT', '状态码', 'ROOT', '0', null, 'SYS', '2021-09-23 10:58:49', 'SYS', '2021-09-23 14:18:27', '0', null, null, null);
INSERT INTO `dictionary` VALUES ('5', 'WXP_STAT', 'OUT_TRADE_NO_USED', '商户订单号重复', 'ORDER_NO_EXISTS', '4', null, 'SYS', '2021-09-23 14:06:13', 'SYS', '2021-09-23 14:15:35', '0', '', '', '');
INSERT INTO `dictionary` VALUES ('6', 'WXP_STAT', 'APPID_MCHID_NOT_MATCH', '商户号与appid不匹配', 'APPID_MCHID_NOT_MATCH', '4', null, 'SYS', '2021-09-23 11:03:48', 'SYS', '2021-09-23 11:08:14', '0', null, null, null);
INSERT INTO `dictionary` VALUES ('7', 'WXP_STAT', 'BANK_ERROR', '银行系统异常', 'BANK_ERROR', '4', null, 'SYS', '2021-09-23 11:06:49', 'SYS', '2021-09-23 14:10:15', '0', null, null, null);
INSERT INTO `dictionary` VALUES ('8', 'WXP_STAT', 'REQUEST_BLOCKED', '请求受阻', 'REQUEST_BLOCKED', '4', null, 'SYS', '2021-09-23 11:06:49', 'SYS', '2021-09-23 14:05:51', '0', null, null, null);
INSERT INTO `dictionary` VALUES ('9', 'WXP_STAT', 'BIZ_ERR_NEED_RETRY', '退款业务流程错误', 'REFUND_LOGIC_ERROR', '4', null, 'SYS', '2021-09-23 11:06:49', 'SYS', '2021-09-23 14:15:27', '0', null, null, null);
INSERT INTO `dictionary` VALUES ('10', 'WXP_STAT', 'PARAM_ERROR', '参数错误', 'PARAM_ERROR', '4', '', 'SYS', '2021-09-23 11:06:49', 'SYS', '2021-09-23 14:05:51', '0', null, null, null);
INSERT INTO `dictionary` VALUES ('11', 'HTTP_STAT', 'ROOT', '状态码', '0', '0', '', 'SYS', '2021-09-23 10:58:49', 'SYS', '2021-09-23 14:18:23', '0', '', '', '');
INSERT INTO `dictionary` VALUES ('12', 'HTTP_STAT', 'APPID_MCHID_NOT_MATCH', '商户号与appid不匹配', '500500101', '11', '', 'SYS', '2021-09-23 10:58:49', 'SYS', '2021-09-24 14:29:28', '0', '', '', '');
INSERT INTO `dictionary` VALUES ('13', 'HTTP_STAT', 'BANK_ERROR', '银行系统异常', '500500102', '11', '', 'SYS', '2021-09-23 10:58:49', 'SYS', '2021-09-24 14:29:30', '0', '', '', '');
INSERT INTO `dictionary` VALUES ('14', 'HTTP_STAT', 'REFUND_LOGIC_ERROR', '退款业务流程错误', '500500103', '11', '', 'SYS', '2021-09-23 10:58:49', 'SYS', '2021-09-24 14:29:32', '0', '', '', '');
INSERT INTO `dictionary` VALUES ('15', 'HTTP_STAT', 'ORDER_NO_EXISTS', '商户订单号重复', '500500104', '11', '', 'SYS', '2021-09-23 10:58:49', 'SYS', '2021-09-24 14:29:34', '0', '', '', '');
INSERT INTO `dictionary` VALUES ('16', 'HTTP_STAT', 'PARAM_ERROR', '参数错误', '500500105', '11', '', 'SYS', '2021-09-23 10:58:49', 'SYS', '2021-09-24 14:29:35', '0', '', '', '');
INSERT INTO `dictionary` VALUES ('17', 'HTTP_STAT', 'REQUEST_BLOCKED', '请求受阻', '500500106', '11', '', 'SYS', '2021-09-23 10:58:49', 'SYS', '2021-09-24 14:29:40', '0', '', '', '');

-- ----------------------------
-- Table structure for mch_channel
-- ----------------------------
DROP TABLE IF EXISTS `mch_channel`;
CREATE TABLE `mch_channel` (
  `ID` bigint(19) NOT NULL COMMENT '唯一标识',
  `PAY_APP_ID` char(32) NOT NULL COMMENT '支付应用ID',
  `PAY_CHAN_CODE` char(4) NOT NULL COMMENT '支付平台码',
  `ACCESS_CODE` varchar(6) NOT NULL COMMENT '接入方法码',
  `PAY_ACCT_ID` char(64) NOT NULL COMMENT '支付平台账户ID',
  `DESC_TEXT` varchar(255) DEFAULT NULL COMMENT '描述',
  `CREATED_BY` varchar(32) NOT NULL COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(32) NOT NULL COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`ID`),
  UNIQUE KEY `UK_IDS` (`PAY_APP_ID`,`PAY_CHAN_CODE`,`ACCESS_CODE`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商户通道';

-- ----------------------------
-- Records of mch_channel
-- ----------------------------
INSERT INTO `mch_channel` VALUES ('75772285618946308', 'wx75d5a207551d0b4d', 'WXP', 'APP', '1604055791', '小程序-狼大呜-APP', 'SYS', '2021-09-24 19:10:01', 'SYS', '2021-09-24 19:10:06', '0', null, null, null);

-- ----------------------------
-- Table structure for pay_account
-- ----------------------------
DROP TABLE IF EXISTS `pay_account`;
CREATE TABLE `pay_account` (
  `PAY_CHAN_CODE` char(4) NOT NULL COMMENT '支付平台码',
  `PAY_ACCT_ID` char(64) NOT NULL COMMENT '支付平台账户ID',
  `PAY_CHAN_TYPE` char(4) NOT NULL COMMENT '支付平台类型',
  `DOMAIN` varchar(255) NOT NULL COMMENT '支付平台域',
  `NAME` varchar(255) NOT NULL COMMENT '账户名称',
  `SECRET_KEY` char(64) NOT NULL COMMENT '加密秘钥',
  `SECRET_TYPE` varchar(32) NOT NULL COMMENT '加密秘钥类型',
  `SIGN_TYPE` varchar(32) NOT NULL,
  `PRIVATE_KEY` varchar(2000) NOT NULL COMMENT '私钥',
  `PAY_PUBLIC_KEY` varchar(2000) NOT NULL COMMENT '支付平台私钥',
  `PAY_CERT_NO` char(65) DEFAULT NULL,
  `PAY_CERT_KEY` text,
  `PAY_ROOT_CERT_NO` char(65) DEFAULT NULL,
  `PAY_ROOT_CERT_KEY` text,
  `CREATED_BY` varchar(32) NOT NULL DEFAULT '' COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(32) NOT NULL DEFAULT '' COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`PAY_CHAN_CODE`,`PAY_ACCT_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='支付账户';

-- ----------------------------
-- Records of pay_account
-- ----------------------------
INSERT INTO `pay_account` VALUES ('ALIP', '2021002106644714', 'THRD', 'https://openapi.alipay.com', '支付宝', '2X0QoyhfCb1iqLQszkfHoQ==', 'AES/CBC/PKCS5Padding', 'SHA256WithRSA', 'MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC3rgHa/x67gaY08RJoeVWLghAiQooLG/dOojW+639RAuirhxLyeuawbcch291uj/90MPTQy86nNKKQBbet41MQtS8L6ts/5Bjp2GYgzsQlmPCRWE7Il94/6R18fg9ZZQ4rx280BrX60hKTF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yV1p+LuFcQ2ciYdWvULh1eZhLxHbGXyznYHi0dGN\nz+I9H8aXxqAQfHVhbdHNzi77hCxFjOy+hHrGsyzjrd2swVQ2iUWP8BfEQqGLqM1g\nKgWKYfcTGdbPB1MCAwEAAaNjMGEwHQYDVR0OBBYEFG/oAMxTVe7y0+408CTAK8hA\nuTyRMB8GA1UdIwQYMBaAFG/oAMxTVe7y0+408CTAK8hAuTyRMA8GA1UdEwEB/wQF\nMAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQBLnUTfW7hp\nemMbuUGCk7RBswzOT83bDM6824EkUnf+X0iKS95SUNGeeSWK2o/3ALJo5hi7GZr3\nU8eLaWAcYizfO99UXMRBPw5PRR+gXGEronGUugLpxsjuynoLQu8GQAeysSXKbN1I\nUugDo9u8igJORYA+5ms0s5sCUySqbQ2R5z/GoceyI9LdxIVa1RjVX8pYOj8JFwtn\nDJN3ftSFvNMYwRuILKuqUYSHc2GPYiHVflDh5nDymCMOQFcFG3WsEuB+EYQPFgIU\n1DHmdZcz7Llx8UOZXX2JupWCYzK1XhJb+r4hK5ncf/w8qGtYlmyJpxk3hr1TfUJX\nYf4Zr0fJsGuv\n-----END CERTIFICATE-----', 'SYS', '2021-08-21 21:15:02', 'SYS', '2021-09-08 14:31:30', '0', null, null, null);
INSERT INTO `pay_account` VALUES ('WXP', '1604055791', 'THRD', 'https://api.mch.weixin.qq.com', '微信', '77f7565be7d8992ab882d4dc31271c72', 'AES/GCM/NoPadding', 'SHA256WithRSA', '-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDEPyU3bE+upacg\nFqhLCCFVFxP4mWgr5TtTVFw9/JaGIptgwnf4bKurZM9EQrioRyHQrbrN3boSJChj\nogQ4ii1//cElpSn/KwLFPWzgtSdRP3KNrsBJ+//UJ98EB/ybA0ugV/7Biviv5zIF\n7SwGTi9tVlI4pgsRBdPJD6MFI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3D9C4qq\n2MoYNAhKreo68DV+P/TDfBZu7qy2oSr7E/hy7df71FVp/66w0b+Q6EJmODnjK6iW\nh/9FxORZwq0dHWN5bmUq1Jw/7EY+XJsc6xU4PvrIpjE=\n-----END CERTIFICATE-----', null, null, 'SYS', '2021-08-21 21:15:02', 'SYS', '2021-09-02 10:08:26', '0', null, null, null);

-- ----------------------------
-- Table structure for pay_app
-- ----------------------------
DROP TABLE IF EXISTS `pay_app`;
CREATE TABLE `pay_app` (
  `PAY_APP_ID` char(32) NOT NULL COMMENT '支付应用ID',
  `INSTITUTION_ID` char(4) NOT NULL COMMENT '机构ID',
  `PRODUCT_ID` char(4) NOT NULL COMMENT '产品ID',
  `PAY_APP_NAME` varchar(255) NOT NULL COMMENT '支付应用名称',
  `SECURITY_KEY` varchar(64) NOT NULL COMMENT '安全秘钥',
  `START_DATE` int(8) NOT NULL COMMENT '有效起始日',
  `END_DATE` int(8) NOT NULL COMMENT '有效结束日',
  `ACTIVATED_FLAG` char(1) NOT NULL,
  `CREATED_BY` varchar(32) NOT NULL DEFAULT '' COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(32) NOT NULL DEFAULT '' COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`PAY_APP_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='支付应用';

-- ----------------------------
-- Records of pay_app
-- ----------------------------
INSERT INTO `pay_app` VALUES ('wx2f44c7fe7b08458d', 'YXM', 'LDW', '小程序-狼大呜-H5', 'wx2f44c7fe7b08458d', '20210101', '20990101', 'Y', 'SYS', '2021-08-21 21:16:12', 'SYS', '2021-08-28 16:56:00', '0', null, null, null);
INSERT INTO `pay_app` VALUES ('wx75d5a207551d0b4d', 'YXM', 'LDW', '小程序-狼大呜-APP', 'wx75d5a207551d0b4d', '20210101', '20990101', 'Y', 'SYS', '2021-08-21 21:16:12', 'SYS', '2021-08-24 15:29:33', '0', null, null, null);
INSERT INTO `pay_app` VALUES ('wxd678efh567hg6787', 'YXM', 'LDW', '小程序-狼大呜', 'wqdv33g43fdfvwef2', '20210101', '20990101', 'Y', 'SYS', '2021-08-21 21:16:12', 'SYS', '2021-08-24 15:29:33', '0', null, null, null);

-- ----------------------------
-- Table structure for pay_feature
-- ----------------------------
DROP TABLE IF EXISTS `pay_feature`;
CREATE TABLE `pay_feature` (
  `PAY_CHAN_CODE` char(4) NOT NULL COMMENT '支付渠道码',
  `ACCESS_CODE` varchar(6) NOT NULL COMMENT '接入方法码（JS:小程序和网页; H5:h5页; APP:应用;）',
  `ACCESS_TYPE` char(3) NOT NULL COMMENT '接入类型（API:接口; SDK:工具库;）',
  `ACCESS_METHOD` varchar(255) DEFAULT NULL,
  `PRODUCT_CODE` varchar(255) DEFAULT NULL,
  `PAY_ACCESS` varchar(255) NOT NULL COMMENT '接入路径',
  `REFUND_ACCESS` varchar(255) NOT NULL,
  `CHECK_ACCESS` varchar(255) NOT NULL,
  `VERSION` char(4) NOT NULL COMMENT '接入版本号',
  `DESC_TEXT` varchar(255) DEFAULT NULL COMMENT '描述',
  `CREATED_BY` varchar(32) NOT NULL DEFAULT 'SYS' COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(32) NOT NULL DEFAULT 'SYS' COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`PAY_CHAN_CODE`,`ACCESS_CODE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='支付特征';

-- ----------------------------
-- Records of pay_feature
-- ----------------------------
INSERT INTO `pay_feature` VALUES ('ALIP', 'APP', 'API', 'alipay.trade.app.pay', 'QUICK_MSECURITY_PAY', '/gateway.do', '', '', '1.0', 'APP支付', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-23 17:53:25', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('ALIP', 'CHKPAY', 'API', 'alipay.trade.query', null, '/gateway.do', '', '', '1.0', '查询订单', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-23 17:53:25', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('ALIP', 'CHKRFD', 'API', 'alipay.trade.fastpay.refund.query', null, '/gateway.do', '', '', '1.0', '退款查询', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-23 17:53:25', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('ALIP', 'CLOSE', 'API', 'alipay.trade.close', null, '/gateway.do', '', '', '1.0', '关闭订单', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-23 17:53:25', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('ALIP', 'H5', 'API', 'alipay.trade.wap.pay', 'QUICK_WAP_PAY', '/gateway.do', '', '', '1.0', '手机网站支付', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-23 17:53:25', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('ALIP', 'REFUND', 'API', 'alipay.trade.refund', null, '/gateway.do', '', '', '1.0', '退款', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-23 17:53:25', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('ALIP', 'WEB', 'API', 'alipay.trade.page.pay', 'FAST_INSTANT_TRADE_PAY', '/gateway.do', '', '', '1.0', '电脑网站支付', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-23 17:53:25', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('WXP', 'APP', 'API', 'POST', null, '/v3/pay/transactions/app', '', '', 'V3', '应用支付', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-08 10:39:40', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('WXP', 'CHKPAY', 'API', 'GET', null, '/v3/pay/transactions/out-trade-no/{out_trade_no}', '', '', 'V3', '查询订单', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-08 10:40:06', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('WXP', 'CHKRFD', 'API', 'GET', null, '/v3/refund/domestic/refunds/{out_refund_no}', '', '', 'V3', '退款查询', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-23 17:53:25', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('WXP', 'CLOSE', 'API', 'POST', null, '/v3/pay/transactions/out-trade-no/{out_trade_no}/close', '', '', 'V3', '关闭订单', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-08 10:40:29', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('WXP', 'H5', 'API', 'POST', null, '/v3/pay/transactions/h5', '', '', 'V3', 'H5页支付', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-08 10:39:48', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('WXP', 'JS', 'API', 'POST', null, '/v3/pay/transactions/jsapi', '', '', 'V3', '网页、小程序支付', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-08 10:39:51', '0', null, null, null);
INSERT INTO `pay_feature` VALUES ('WXP', 'REFUND', 'API', 'POST', null, '/v3/refund/domestic/refunds', '', '', 'V3', '退款', 'SYS', '2021-08-21 21:18:01', 'SYS', '2021-09-08 10:39:53', '0', null, null, null);

-- ----------------------------
-- Table structure for pay_goods_detail
-- ----------------------------
DROP TABLE IF EXISTS `pay_goods_detail`;
CREATE TABLE `pay_goods_detail` (
  `GOODS_ID` bigint(19) NOT NULL,
  `TRANSACTION_ID` bigint(19) NOT NULL,
  `GOODS_ORDER_NO` varchar(64) NOT NULL,
  `GOODS_NAME` varchar(512) NOT NULL,
  `QUANTITY` smallint(255) NOT NULL,
  `PRICE` decimal(19,2) NOT NULL,
  `DISC_AMOUNT` decimal(19,2) NOT NULL,
  `TXN_AMOUNT` decimal(19,2) NOT NULL,
  `ATTACH_TEXT` varchar(512) DEFAULT NULL,
  `PARTITION_KEY` smallint(4) NOT NULL COMMENT '分区键',
  `CREATED_BY` varchar(32) NOT NULL COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(32) NOT NULL COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`GOODS_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of pay_goods_detail
-- ----------------------------
INSERT INTO `pay_goods_detail` VALUES ('75752798662295555', '75752798661246978', '111111', '商品12', '1', '10.00', '2.50', '17.50', '---', '71', 'SYS', '2021-09-24 20:03:34', 'SYS', '2021-09-24 20:03:34', '1', null, null, null);

-- ----------------------------
-- Table structure for pay_history
-- ----------------------------
DROP TABLE IF EXISTS `pay_history`;
CREATE TABLE `pay_history` (
  `TRANSACTION_ID` bigint(19) NOT NULL,
  `INSTITUTION_ID` char(4) NOT NULL,
  `PRODUCT_ID` char(4) NOT NULL,
  `EXTERNAL_ORDER_NO` char(64) NOT NULL,
  `ACCOUNT_ID` bigint(19) NOT NULL,
  `CHANNEL_ID` bigint(19) NOT NULL,
  `SUBJECT` varchar(128) NOT NULL,
  `STATUS_CODE` char(4) NOT NULL COMMENT '状态码',
  `CURRENCY_CODE` char(3) NOT NULL,
  `PAY_METHOD` char(4) NOT NULL COMMENT '支付方式(AUTO:自动/DRST:主动/MANU:手动)',
  `TXN_TYPE` char(4) NOT NULL,
  `TXN_CODE` char(4) NOT NULL,
  `TXN_NO` int(11) NOT NULL,
  `STATISTICS_CODE` char(4) NOT NULL,
  `CREDIT_DEBIT_FLAG` char(1) NOT NULL,
  `CUSTOMER_GEN_FLAG` char(1) NOT NULL,
  `ORIGINAL_TXN_AMOUNT` decimal(17,2) NOT NULL,
  `TXN_AMOUNT` decimal(17,2) NOT NULL,
  `DISC_AMOUNT` decimal(17,2) NOT NULL,
  `GEN_FEE_AMOUNT` decimal(17,2) NOT NULL,
  `POST_CASH_AMOUNT` decimal(17,2) NOT NULL,
  `POST_CREDIT_AMOUNT` decimal(17,2) NOT NULL,
  `STATEMENTE_FLAG` char(1) NOT NULL,
  `TXN_DATE` int(8) NOT NULL,
  `TXN_TIME` int(6) NOT NULL,
  `PAY_DUE_TIME` bigint(14) NOT NULL,
  `REQUEST_ID` char(64) NOT NULL,
  `REQUEST_TIME` timestamp NOT NULL,
  `SHOP_NAME` varchar(255) DEFAULT NULL,
  `MOBILE_PHONE` char(13) DEFAULT NULL,
  `GOODS_SIGNER` varchar(60) DEFAULT NULL,
  `ADDRESS` varchar(500) DEFAULT NULL,
  `ATTACH_TEXT` varchar(512) DEFAULT NULL,
  `DESC_TEXT` varchar(400) DEFAULT NULL COMMENT '描述',
  `PARTITION_KEY` smallint(4) NOT NULL COMMENT '分区键',
  `CREATED_BY` varchar(32) NOT NULL COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(32) NOT NULL COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`TRANSACTION_ID`),
  UNIQUE KEY `UK_EXT_IDS` (`INSTITUTION_ID`,`PRODUCT_ID`,`EXTERNAL_ORDER_NO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of pay_history
-- ----------------------------
INSERT INTO `pay_history` VALUES ('75752798661246978', 'YXM', 'LDW', '1111111111111111111111111', '75958421027815495', '75772285618946308', '测试订单1', 'PEND', 'CNY', 'DRST', 'PYMT', 'R001', '10', 'PYMT', 'C', 'Y', '110.00', '100.00', '10.00', '0.00', '100.00', '0.00', '1', '20210924', '200331', '20210924203332', '08F2FCB68A0610A4071899DBEEA30620FD1828B19602-0', '2021-09-24 20:03:32', '测试店铺', '13718656985', '测试员', '测试收货地址', 'AAAA-BBBB-1111-2222', 'wx242002589937965a1a667c37b8fbde0000', '71', 'SYS', '2021-09-24 20:03:34', 'SYS', '2021-09-24 20:03:34', '1', null, null, null);

-- ----------------------------
-- Table structure for status_code
-- ----------------------------
DROP TABLE IF EXISTS `status_code`;
CREATE TABLE `status_code` (
  `INSTITUTION_ID` char(4) NOT NULL COMMENT '机构ID',
  `ENTITY` char(4) NOT NULL COMMENT '实体码(ACCT:账户)',
  `CODE` char(4) NOT NULL COMMENT '状态码',
  `PRIORITY` smallint(4) NOT NULL COMMENT '优先值(0:最低)',
  `CODE_TYPE` char(4) NOT NULL COMMENT '状态类型(AUTO:自动/MANU:手动)',
  `POSTING_CODE` char(4) NOT NULL COMMENT '交易入账码(NORM:所有交易不能入账/ASUS:所有交易都可入账/DSUS:只有借记和非现金交易能入账)',
  `SEND_NOTICE_FLAG` char(1) NOT NULL COMMENT '发送给催收标记(Y/N)',
  `REGR_CODE` char(4) DEFAULT NULL COMMENT '回归码',
  `FAILED_CODE` char(4) NOT NULL,
  `NEXT_CODE` char(4) DEFAULT NULL COMMENT '下一个码值',
  `MESSAGE_CODE` char(4) DEFAULT NULL COMMENT '给用户的消息码',
  `DESC_TEXT` varchar(400) DEFAULT NULL COMMENT '描述',
  `CREATED_BY` varchar(72) NOT NULL COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(72) NOT NULL COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`INSTITUTION_ID`,`ENTITY`,`CODE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of status_code
-- ----------------------------
INSERT INTO `status_code` VALUES ('YXM', 'PYMT', 'CLOS', '3', 'AUTO', 'NORM', 'Y', null, 'FAIL', null, null, '交易关闭', 'SYS', '2021-09-13 18:27:19', 'SYS', '2021-09-13 18:27:19', '0', null, null, null);
INSERT INTO `status_code` VALUES ('YXM', 'PYMT', 'FAIL', '4', 'AUTO', 'NORM', 'Y', null, 'FAIL', null, null, '交易失败', 'SYS', '2021-09-13 18:27:19', 'SYS', '2021-09-13 18:27:19', '0', null, null, null);
INSERT INTO `status_code` VALUES ('YXM', 'PYMT', 'PEND', '1', 'AUTO', 'NORM', 'N', null, 'FAIL', 'SUCC', null, '等待中', 'SYS', '2021-09-13 18:27:19', 'SYS', '2021-09-13 18:27:19', '0', null, null, null);
INSERT INTO `status_code` VALUES ('YXM', 'PYMT', 'SUCC', '2', 'AUTO', 'NORM', 'Y', null, 'FAIL', null, null, '交易成功', 'SYS', '2021-09-13 18:27:19', 'SYS', '2021-09-13 18:27:19', '0', null, null, null);

-- ----------------------------
-- Table structure for transaction_summary
-- ----------------------------
DROP TABLE IF EXISTS `transaction_summary`;
CREATE TABLE `transaction_summary` (
  `TXN_ID` bigint(19) NOT NULL COMMENT '交易ID',
  `ACCOUNT_ID` bigint(19) NOT NULL COMMENT '账户ID',
  `SUMMARY_NO` int(8) NOT NULL COMMENT '交易序号(0:默认值)',
  `INSTITUTION_ID` char(4) NOT NULL COMMENT '机构ID',
  `PRODUCT_ID` char(4) NOT NULL COMMENT '产品ID',
  `TXN_CODE` char(4) NOT NULL COMMENT '交易码',
  `TXN_TYPE_CODE` char(4) NOT NULL COMMENT '交易类型码',
  `STATISTICS_CODE` char(4) NOT NULL COMMENT '统计码',
  `GEN_SUMMARY_NO` int(8) NOT NULL COMMENT '产生交易的源交易号(0:默认值)',
  `TXN_UUID` char(32) NOT NULL COMMENT '交易全局唯一号',
  `EXTERNAL_ORDER_NO` varchar(64) NOT NULL COMMENT '外部系统订单号',
  `REFERENCE_NO` varchar(64) NOT NULL COMMENT '参考号',
  `CREDIT_DEBIT_FLAG` char(1) NOT NULL COMMENT '借贷记标记',
  `CUSTOMER_GEN_FLAG` char(1) NOT NULL COMMENT '用户发起标记（Y:是/N:否）',
  `ORIGINAL_TXN_AMOUNT` decimal(9,2) NOT NULL COMMENT '原交易金额',
  `TXN_AMOUNT` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '交易金额',
  `POSTING_DATE` int(8) NOT NULL COMMENT '入账日期',
  `POSTING_AMOUNT` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '入账金额',
  `INSTITUTION_FEE_AMOUNT` decimal(9,2) NOT NULL COMMENT '机构扣除费用',
  `GEN_FEE_AMOUNT` decimal(9,2) NOT NULL DEFAULT '0.00' COMMENT '产生的费用金额',
  `EXCHANGE_RATE` decimal(9,5) NOT NULL DEFAULT '0.00000' COMMENT '兑换费率',
  `MERCHANT_NAME` varchar(72) NOT NULL COMMENT '商户名称("":默认)',
  `COMMODITY_NO` varchar(32) NOT NULL COMMENT '商品编号("":默认)',
  `STATEMENTE_FLAG` char(1) NOT NULL COMMENT '交易呈现账单标记（Y-呈现/N-不呈现）',
  `TXN_DATE` int(8) NOT NULL COMMENT '交易日期',
  `TXN_TIME` int(6) NOT NULL COMMENT '交易时间',
  `CHAN_ACCT_NO` varchar(32) NOT NULL COMMENT '渠道账户号',
  `CHAN_ACCT_NAME` varchar(64) NOT NULL COMMENT '渠道账户姓名',
  `CHAN_CODE` varchar(16) NOT NULL COMMENT '渠道码',
  `CHAN_NAME` varchar(128) DEFAULT NULL COMMENT '账户名称',
  `CHAN_ADDR` varchar(128) DEFAULT NULL COMMENT '渠道地址',
  `REQUEST_TIME` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `MOBILE_PHONE` char(15) DEFAULT NULL COMMENT '手机号',
  `DESC_TEXT` varchar(400) DEFAULT NULL COMMENT '描述',
  `DETECTION_TEXT` varchar(500) DEFAULT NULL COMMENT '回溯脚本',
  `CREATED_BY` varchar(72) NOT NULL COMMENT '创建用户',
  `CREATED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `MODIFIED_BY` varchar(72) NOT NULL COMMENT '更新用户',
  `MODIFIED_DATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
  `MODIFIED_NO` int(8) NOT NULL DEFAULT '0' COMMENT '更新次数',
  `PARTITION_KEY` smallint(4) NOT NULL COMMENT '分区键',
  `EXTENDED_FIELD1` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD2` varchar(4) DEFAULT NULL,
  `EXTENDED_FIELD3` varchar(4) DEFAULT NULL,
  PRIMARY KEY (`TXN_ID`),
  UNIQUE KEY `UK_ACCT_CLE` (`ACCOUNT_ID`,`SUMMARY_NO`) USING BTREE,
  UNIQUE KEY `UK_INST_ORD` (`INSTITUTION_ID`,`EXTERNAL_ORDER_NO`) USING BTREE,
  KEY `IK_ACCT_CYCL_SRCH` (`ACCOUNT_ID`,`STATEMENTE_FLAG`,`SUMMARY_NO`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='This entity holds, for each billing cycle of each account, the short transaction summary reference that appears on the statement sent to the customer. \r\nIt will be generated at posting from the full transaction details and will not be maintainable. It will undergo one or more events during its lifetime and will not be deleted until all extant events are ''cleared'' and the transaction retention period reached. Creation, maintenance and deletion will all be system controlled.\r\nWhen a transaction is received into the system the account against which it will be posted will be determined by identifying the appropriate plastic application that initiated the transaction using user-defined criteria.';

-- ----------------------------
-- Records of transaction_summary
-- ----------------------------
