# ************************************************************
# Sequel Ace SQL dump
# 版本号： 20021
#
# https://sequel-ace.com/
# https://github.com/Sequel-Ace/Sequel-Ace
#
# 主机: 43.142.42.187 (MySQL 8.0.29)
# 数据库: oc-pay
# 生成时间: 2022-07-19 16:28:48 +0000
# ************************************************************


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
SET NAMES utf8mb4;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE='NO_AUTO_VALUE_ON_ZERO', SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;


# 转储表 alipay
# ------------------------------------------------------------

DROP TABLE IF EXISTS `alipay`;

CREATE TABLE `alipay` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint DEFAULT NULL COMMENT '用户id',
  `pay_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '2' COMMENT '产品类型',
  `tenantid` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '租户id',
  `server_url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '域名绑定',
  `paystatus` int DEFAULT '0' COMMENT '支付接口状态:0正常,1预警额度,2风控',
  `CREATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `UPDATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `amount` int DEFAULT '1' COMMENT '限定额度',
  `weight` int DEFAULT '1' COMMENT '权重',
  `status` tinyint(1) DEFAULT '0' COMMENT '接口状态:0正常,1禁用',
  `app_id` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'appId',
  `private_key` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '商户私钥',
  `alipay_publickey` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '支付宝公钥',
  `app_cert_content` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '商户公钥应用证书',
  `alipaypubliccertcontent` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT '支付宝公钥证书',
  `rootcertcontent` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '根证书',
  `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '公司名',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

LOCK TABLES `alipay` WRITE;
/*!40000 ALTER TABLE `alipay` DISABLE KEYS */;

INSERT INTO `alipay` (`id`, `user_id`, `pay_type`, `tenantid`, `server_url`, `paystatus`, `CREATETIME`, `UPDATETIME`, `amount`, `weight`, `status`, `app_id`, `private_key`, `alipay_publickey`, `app_cert_content`, `alipaypubliccertcontent`, `rootcertcontent`, `name`)
VALUES
	(39,1578582016,'2','0','0',0,'2022-07-14 09:44:19','2022-07-19 15:14:50',500000,10,0,'2019111869281079','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','0',X'30','0','11'),
	(40,1,'2','0','0',0,'2022-07-14 09:44:19','2022-07-19 15:14:53',5000001,10,0,'40','40','40','0',X'30','0','11'),
	(41,1,'2','0','0',0,'2022-07-14 09:44:19','2022-07-19 15:14:58',5000002,10,0,'41','41','41','0',X'30','0','11'),
	(42,1,'2','0','0',0,'2022-07-14 09:44:19','2022-07-19 15:14:55',5000003,10,0,'42','42','42','0',X'30','0','11'),
	(43,1,'2','0','0',0,'2022-07-14 09:44:19','2022-07-19 15:15:07',5000004,10,0,'43','43','43','0',X'30','0','11'),
	(44,1,'2','0','0',0,'2022-07-14 09:44:19','2022-07-19 15:15:00',5000005,10,0,'44','44','44','0',X'30','0','11'),
	(45,1,'2','0','0',0,'2022-07-14 09:44:19','2022-07-19 15:15:04',5000006,10,0,'45','45','45','0',X'30','0','11');

/*!40000 ALTER TABLE `alipay` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 goods
# ------------------------------------------------------------

DROP TABLE IF EXISTS `goods`;

CREATE TABLE `goods` (
  `goods_id` bigint NOT NULL COMMENT 'id',
  `tenant_id` bigint DEFAULT NULL COMMENT '租户id',
  `user_id` bigint DEFAULT NULL COMMENT '用户id',
  `subject` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '商品名',
  `short_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '商品简介',
  `pic_url` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '图片',
  `body` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '商品详情',
  `price` int DEFAULT NULL COMMENT '单价:0是免费',
  `marking_price` int DEFAULT NULL COMMENT '商品划线价格',
  `selling_model` tinyint(1) DEFAULT NULL COMMENT '商品售卖包',
  `status` tinyint(1) DEFAULT '0' COMMENT '状态',
  `parent` tinyint(1) DEFAULT '0' COMMENT '是否是父主题',
  `CREATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `UPDATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `free` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '是否免费:0是免费,1是收费',
  `full_phone` varchar(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '0' COMMENT '是否免费:0是免费,1是收费',
  `goods_package_id` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT 'goods_package_id',
  PRIMARY KEY (`goods_id`),
  KEY `index_name` (`user_id`,`tenant_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

LOCK TABLES `goods` WRITE;
/*!40000 ALTER TABLE `goods` DISABLE KEYS */;

INSERT INTO `goods` (`goods_id`, `tenant_id`, `user_id`, `subject`, `short_name`, `pic_url`, `body`, `price`, `marking_price`, `selling_model`, `status`, `parent`, `CREATETIME`, `UPDATETIME`, `free`, `full_phone`, `goods_package_id`)
VALUES
	(278776426784649216,0,1,'1','1','string','1',0,0,0,0,0,'2022-07-18 14:59:29','2022-07-18 14:59:29','1',NULL,'278776426784649217'),
	(278776450809622528,0,1,'1','1','string','1',0,0,0,0,0,'2022-07-18 14:59:35','2022-07-18 14:59:35','1',NULL,'278776450813816832'),
	(278776462243295232,0,1,'1','1','string','1',0,0,0,0,0,'2022-07-18 14:59:38','2022-07-18 14:59:38','1',NULL,'278776462251683840'),
	(278966190024454144,0,1578582016,'123','120','http://oc-market.finezb.com/2022/07/19e1ada10d-4ba4-4455-b6e8-57b14fb9851e_src=http___i-1.lanrentuku.com_2020_11_6_ca4d85a7-0ba0-4cc7-9bd5-e9612611a4cc.png_imageView2_2_w_500&refer=http___i-1.lanrentuku.jpeg','<p><br></p><p><img src=\"http://oc-market.finezb.com/2022/07/199f9ff23a-e9b5-494d-8f6e-2cafec0bf01d_src=http___i-1.lanrentuku.com_2020_11_6_ca4d85a7-0ba0-4cc7-9bd5-e9612611a4cc.png_imageView2_2_w_500&amp;refer=http___i-1.lanrentuku.jpeg\"></p>',10,10,0,0,1,NULL,'2022-07-19 06:15:41','0',NULL,NULL),
	(279007502278881280,0,1578582016,'123','999','http://oc-market.finezb.com/2022/07/19604f4dd1-cdf8-48f1-ba4a-08218fe7ab5a_src=http___i-1.lanrentuku.com_2020_11_6_ca4d85a7-0ba0-4cc7-9bd5-e9612611a4cc.png_imageView2_2_w_500&refer=http___i-1.lanrentuku.jpeg','<p><br></p><p><img src=\"http://oc-market.finezb.com/2022/07/19f8f4aaa9-9499-4b0e-9fe6-bb0f43264fe1_src=http___i-1.lanrentuku.com_2020_11_6_ca4d85a7-0ba0-4cc7-9bd5-e9612611a4cc.png_imageView2_2_w_500&amp;refer=http___i-1.lanrentuku.jpeg\">4564564564564</p><p><img src=\"http://oc-market.finezb.com/2022/07/19a9eeebd0-5c8c-4399-8f11-723a9a1bd66d_微信截图_20220707114727.png\"></p><p><img src=\"http://oc-market.finezb.com/2022/07/198497e768-9ee4-4593-baa5-e84487f6e203_微信截图_20220627143005.png\"></p>',10,10,0,0,1,'2022-07-19 06:17:42','2022-07-19 06:17:42',NULL,NULL,NULL),
	(279052295512027136,0,1578582016,'456','456','http://oc-market.finezb.com/2022/07/1974fc9fed-12c4-459c-b219-bffb5d8c0162_src=http___i-1.lanrentuku.com_2020_11_6_ca4d85a7-0ba0-4cc7-9bd5-e9612611a4cc.png_imageView2_2_w_500&refer=http___i-1.lanrentuku.jpeg','<p><br></p><p><img src=\"http://oc-market.finezb.com/2022/07/19177c1571-1627-44d4-be3b-6a777a945d4b_微信图片_20220719170738.png\"></p><p><img src=\"http://oc-market.finezb.com/2022/07/1968b3988f-7ff2-4239-86ec-f3d799638ddb_微信图片_20220719170759.png\"></p><p><img src=\"http://oc-market.finezb.com/2022/07/1988f6480f-03ea-4c50-b807-7a849090ee17_微信图片_20220719170802.png\"></p>',10,10,0,0,1,'2022-07-19 09:15:41','2022-07-19 09:15:41',NULL,NULL,NULL),
	(279094184684584960,0,1578582016,'健胃消食片','健胃消食片的介绍',NULL,'<p><br></p><p><br></p><img src=undefined>',98,110,0,0,1,NULL,'2022-07-19 12:02:47','0',NULL,NULL);

/*!40000 ALTER TABLE `goods` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 goods_package
# ------------------------------------------------------------

DROP TABLE IF EXISTS `goods_package`;

CREATE TABLE `goods_package` (
  `id` bigint NOT NULL COMMENT 'id',
  `goods_id` bigint DEFAULT NULL COMMENT '商品id',
  `sub_goods_id` bigint DEFAULT NULL COMMENT '支付模型:1商品默认金额,2自定义金额',
  `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '商品备注',
  `status` tinyint(1) DEFAULT '0' COMMENT '状态',
  `CREATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `UPDATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

LOCK TABLES `goods_package` WRITE;
/*!40000 ALTER TABLE `goods_package` DISABLE KEYS */;

INSERT INTO `goods_package` (`id`, `goods_id`, `sub_goods_id`, `remark`, `status`, `CREATETIME`, `UPDATETIME`)
VALUES
	(278776426784649217,278776426784649216,1,NULL,0,'2022-07-18 14:59:29','2022-07-18 14:59:29'),
	(278776450813816832,278776450809622528,1,NULL,0,'2022-07-18 14:59:35','2022-07-18 14:59:35'),
	(278776462251683840,278776462243295232,1,NULL,0,'2022-07-18 14:59:38','2022-07-18 14:59:38');

/*!40000 ALTER TABLE `goods_package` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 goods_pay
# ------------------------------------------------------------

DROP TABLE IF EXISTS `goods_pay`;

CREATE TABLE `goods_pay` (
  `id` bigint NOT NULL COMMENT 'id',
  `user_id` bigint DEFAULT NULL COMMENT '用户id',
  `goods_id` bigint DEFAULT NULL COMMENT '商品id',
  `payment_model` tinyint(1) DEFAULT NULL COMMENT '支付模型:1商品默认金额,2自定义金额',
  `status` tinyint(1) DEFAULT '0' COMMENT '状态',
  `payment` int DEFAULT '0' COMMENT '支付金额',
  `full_phone` tinyint(1) DEFAULT '1' COMMENT '是否填写手机号.默认不填写1 ,填写0',
  `expire_model` tinyint(1) DEFAULT '0' COMMENT '过期模型:0商品默认不过期,1设计过期时间,2上架后失败时间',
  `expire_endtime` datetime DEFAULT NULL COMMENT '过期时间',
  `starttime` datetime DEFAULT NULL COMMENT '开始时间',
  `expire_millisecond` int DEFAULT '1' COMMENT '过期毫秒数',
  `remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '商品备注',
  `CREATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `UPDATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `ditch_id` bigint DEFAULT '1' COMMENT '渠道id',
  `subject` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '商品主题',
  `short_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '商品简介',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

LOCK TABLES `goods_pay` WRITE;
/*!40000 ALTER TABLE `goods_pay` DISABLE KEYS */;

INSERT INTO `goods_pay` (`id`, `user_id`, `goods_id`, `payment_model`, `status`, `payment`, `full_phone`, `expire_model`, `expire_endtime`, `starttime`, `expire_millisecond`, `remark`, `CREATETIME`, `UPDATETIME`, `ditch_id`, `subject`, `short_name`)
VALUES
	(279082778027384832,1578582016,278966190024454144,0,0,100,0,NULL,'2022-07-19 10:00:00','2022-07-19 08:00:00',0,NULL,'2022-07-19 11:16:49','2022-07-19 11:20:35',1,'123','123'),
	(279082778027384833,1,278776426784649216,0,0,100,0,NULL,'2022-07-29 10:00:00','2022-07-16 08:00:00',0,NULL,'2022-07-19 11:16:49','2022-07-19 15:04:47',1,'123','123');

/*!40000 ALTER TABLE `goods_pay` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 goods_pay_ditch
# ------------------------------------------------------------

DROP TABLE IF EXISTS `goods_pay_ditch`;

CREATE TABLE `goods_pay_ditch` (
  `ditch_id` bigint NOT NULL COMMENT 'id',
  `goods_id` bigint DEFAULT NULL COMMENT '商品id',
  `goods_pay_id` bigint DEFAULT NULL COMMENT '商品支付id',
  `status` tinyint(1) DEFAULT '0' COMMENT '状态',
  `pay_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '支付名',
  `opt_pay` bigint DEFAULT '0' COMMENT '1,微信,2支付宝',
  `random` tinyint(1) DEFAULT NULL COMMENT '是否随机:0已经选择,1不随机',
  `appoint_pay` int DEFAULT NULL COMMENT '指定支付公司',
  `CREATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `UPDATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`ditch_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

LOCK TABLES `goods_pay_ditch` WRITE;
/*!40000 ALTER TABLE `goods_pay_ditch` DISABLE KEYS */;

INSERT INTO `goods_pay_ditch` (`ditch_id`, `goods_id`, `goods_pay_id`, `status`, `pay_name`, `opt_pay`, `random`, `appoint_pay`, `CREATETIME`, `UPDATETIME`)
VALUES
	(279082778027384833,278966190024454144,279082778027384832,0,'wx',1,1,1,'2022-07-19 11:16:49','2022-07-19 11:16:49'),
	(279082778027384834,278776426784649216,279082778027384833,0,'wx',1,0,1,'2022-07-19 11:16:49','2022-07-19 14:39:50'),
	(279082778027384835,278776426784649216,279082778027384833,0,'ali',2,0,1,'2022-07-19 11:16:49','2022-07-19 14:39:51');

/*!40000 ALTER TABLE `goods_pay_ditch` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 menu_init
# ------------------------------------------------------------

DROP TABLE IF EXISTS `menu_init`;

CREATE TABLE `menu_init` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
  `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '菜单名称',
  `permission` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '权限标识',
  `type` tinyint NOT NULL COMMENT '菜单类型',
  `sort` int NOT NULL DEFAULT '0' COMMENT '显示顺序',
  `parent_id` bigint NOT NULL DEFAULT '0' COMMENT '父菜单ID',
  `path` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '路由地址',
  `icon` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '#' COMMENT '菜单图标',
  `component` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '组件路径',
  `status` tinyint NOT NULL DEFAULT '0' COMMENT '菜单状态',
  `visible` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否可见',
  `keep_alive` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否缓存',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='菜单权限表';

LOCK TABLES `menu_init` WRITE;
/*!40000 ALTER TABLE `menu_init` DISABLE KEYS */;

INSERT INTO `menu_init` (`id`, `name`, `permission`, `type`, `sort`, `parent_id`, `path`, `icon`, `component`, `status`, `visible`, `keep_alive`, `creator`, `create_time`, `updater`, `update_time`, `deleted`)
VALUES
	(1,'支付配置','1',1,1,0,'{\"path\":\"/home\",\"component\": ()=>import(\'@/views/home/page/index.vue\'),meta:{ iconfont:\'icon-fencengpeizhi\'},redirect:\'/home/page/paybind\',children:[{path: \'/home/page/pa','#',NULL,0,b'1',b'1','','2022-07-05 05:55:35','','2022-07-18 11:08:05',b'0'),
	(2,'商品橱柜','1',1,2,0,' { path: \'/home/goodscabinet\',\n        name: \'商品橱柜\',\n        meta:{\n          iconfont:\'icon-shangpin\'\n        },\n        component:  ()=>import(\'@/views/goods-cabinet/index.vue\')\n      },','#',NULL,0,b'1',b'1','','2022-07-05 05:56:59','','2022-07-18 11:07:40',b'0'),
	(3,'支付链接','1',1,3,0,' { path: \'/home/paylist\',\n        name: \'支付链接\',\n        meta:{\n          iconfont:\'icon-zhifubao\'\n        },\n        component:  ()=>import(\'@/views/pay-list/index.vue\')\n      },','#',NULL,0,b'1',b'1','','2022-07-05 05:56:59','','2022-07-18 11:07:29',b'0');

/*!40000 ALTER TABLE `menu_init` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 pay_order
# ------------------------------------------------------------

DROP TABLE IF EXISTS `pay_order`;

CREATE TABLE `pay_order` (
  `id` bigint NOT NULL AUTO_INCREMENT COMMENT '支付订单编号',
  `merchant_id` bigint NOT NULL COMMENT '商户编号',
  `app_id` bigint NOT NULL COMMENT '应用编号',
  `channel_id` bigint DEFAULT NULL COMMENT '渠道编号',
  `channel_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '渠道编码',
  `merchant_order_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商户订单编号',
  `subject` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品标题',
  `body` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商品描述',
  `notify_url` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '异步通知地址',
  `notify_status` tinyint NOT NULL COMMENT '通知商户支付结果的回调状态',
  `amount` bigint NOT NULL COMMENT '支付金额，单位：分',
  `channel_fee_rate` double DEFAULT '0' COMMENT '渠道手续费，单位：百分比',
  `channel_fee_amount` bigint DEFAULT '0' COMMENT '渠道手续金额，单位：分',
  `status` tinyint NOT NULL COMMENT '支付状态',
  `user_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户 IP',
  `expire_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '订单失效时间',
  `success_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '订单支付成功时间',
  `notify_time` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '订单支付通知时间',
  `success_extension_id` bigint DEFAULT NULL COMMENT '支付成功的订单拓展单编号',
  `refund_status` tinyint NOT NULL COMMENT '退款状态',
  `refund_times` tinyint NOT NULL COMMENT '退款次数',
  `refund_amount` bigint NOT NULL COMMENT '退款总金额，单位：分',
  `channel_user_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '渠道用户编号',
  `channel_order_no` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '渠道订单号',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  `tenant_id` bigint NOT NULL DEFAULT '0' COMMENT '租户编号',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='支付订单\n';



# 转储表 pay_realm_name
# ------------------------------------------------------------

DROP TABLE IF EXISTS `pay_realm_name`;

CREATE TABLE `pay_realm_name` (
  `id` bigint unsigned NOT NULL,
  `user_id` bigint DEFAULT NULL COMMENT '用户id',
  `tenant_id` int DEFAULT NULL COMMENT '商户id',
  `url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '支付域名',
  `remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '备注',
  `CREATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `UPDATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `status` tinyint(1) DEFAULT NULL COMMENT '状态',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

LOCK TABLES `pay_realm_name` WRITE;
/*!40000 ALTER TABLE `pay_realm_name` DISABLE KEYS */;

INSERT INTO `pay_realm_name` (`id`, `user_id`, `tenant_id`, `url`, `remarks`, `CREATETIME`, `UPDATETIME`, `status`)
VALUES
	(276482297178382336,1,1,'http://pay.finekaa.com','1','2022-07-12 07:03:26','2022-07-18 09:49:59',0),
	(276482297178382340,1578582016,1,'http://pay.finekaa.com','1','2022-07-12 07:03:26','2022-07-18 09:49:58',0);

/*!40000 ALTER TABLE `pay_realm_name` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 pay_type
# ------------------------------------------------------------

DROP TABLE IF EXISTS `pay_type`;

CREATE TABLE `pay_type` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'id',
  `name` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '支付名',
  `url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '支付接口',
  `state` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '0' COMMENT '接口状态',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

LOCK TABLES `pay_type` WRITE;
/*!40000 ALTER TABLE `pay_type` DISABLE KEYS */;

INSERT INTO `pay_type` (`id`, `name`, `url`, `state`)
VALUES
	(1,'微信支付',NULL,'0'),
	(2,'支付宝',NULL,'0'),
	(3,'花呗',NULL,'0'),
	(4,'京东白条',NULL,'0'),
	(5,'银联',NULL,'0');

/*!40000 ALTER TABLE `pay_type` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 permission
# ------------------------------------------------------------

DROP TABLE IF EXISTS `permission`;

CREATE TABLE `permission` (
  `permission_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  PRIMARY KEY (`permission_id`),
  UNIQUE KEY `permission_id` (`permission_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;



# 转储表 role
# ------------------------------------------------------------

DROP TABLE IF EXISTS `role`;

CREATE TABLE `role` (
  `role_id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  PRIMARY KEY (`role_id`),
  UNIQUE KEY `role_id` (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;



# 转储表 role_permission
# ------------------------------------------------------------

DROP TABLE IF EXISTS `role_permission`;

CREATE TABLE `role_permission` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `permission_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `role_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;



# 转储表 sys_user
# ------------------------------------------------------------

DROP TABLE IF EXISTS `sys_user`;

CREATE TABLE `sys_user` (
  `user_id` bigint NOT NULL COMMENT '主键ID',
  `username` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '用户名',
  `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '密码',
  `salt` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '盐值',
  `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '手机号',
  `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '头像',
  `client_id` bigint DEFAULT NULL COMMENT '所属客户ID',
  `lock_flag` tinyint(1) NOT NULL DEFAULT '0' COMMENT '禁用标识 0启用 1锁定',
  `registration_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '注册类型 1手机号 2微信 3QQ',
  `update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
  `update_by` bigint DEFAULT '0',
  `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `create_by` bigint DEFAULT '0',
  `delete_flg` tinyint(1) NOT NULL DEFAULT '0',
  `wx_openid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '微信登录openId',
  `mini_openid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '小程序openId',
  `qq_openid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'QQ openId',
  `unionid` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'unionid',
  PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户表';

LOCK TABLES `sys_user` WRITE;
/*!40000 ALTER TABLE `sys_user` DISABLE KEYS */;

INSERT INTO `sys_user` (`user_id`, `username`, `password`, `salt`, `phone`, `avatar`, `client_id`, `lock_flag`, `registration_type`, `update_at`, `update_by`, `create_at`, `create_by`, `delete_flg`, `wx_openid`, `mini_openid`, `qq_openid`, `unionid`)
VALUES
	(1,'13564373954','ga4JaZdcU0MsUmYLza5MeQ==',NULL,'13564373954',NULL,1,0,1,'2021-01-13 15:15:16',0,'2021-01-13 15:15:16',0,0,NULL,NULL,NULL,NULL),
	(1578582016,'admin','4280d89a5a03f812751f504cc10ee8a5',NULL,NULL,NULL,NULL,0,0,'2022-07-05 09:24:45',0,'2022-07-05 09:24:45',0,0,NULL,'aaa','00',NULL),
	(1392314100482080,'13501765940','ga4JaZdcU0MsUmYLza5MeQ==',NULL,'13501765940',NULL,NULL,0,1,'2021-01-14 10:38:20',0,'2021-01-14 10:38:20',0,0,NULL,NULL,NULL,NULL),
	(1392556699025440,'17755355877','Ot6bqSY4Bhaaq4pKPOOqnw==',NULL,'17755355877',NULL,NULL,0,1,'2021-01-15 18:46:19',0,'2021-01-15 18:46:19',0,0,NULL,NULL,NULL,NULL);

/*!40000 ALTER TABLE `sys_user` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 system_tenant
# ------------------------------------------------------------

DROP TABLE IF EXISTS `system_tenant`;

CREATE TABLE `system_tenant` (
  `tenant_id` bigint NOT NULL AUTO_INCREMENT COMMENT '租户编号',
  `name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '租户名',
  `contact_user_id` bigint DEFAULT NULL COMMENT '联系人的用户编号',
  `contact_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '联系人',
  `contact_mobile` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '联系手机',
  `status` tinyint NOT NULL DEFAULT '0' COMMENT '租户状态（0正常 1停用）',
  `domain` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '绑定域名',
  `package_id` bigint DEFAULT NULL COMMENT '租户套餐编号',
  `expire_time` datetime DEFAULT NULL COMMENT '过期时间',
  `account_count` int DEFAULT NULL COMMENT '账号数量',
  `creator` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '创建者',
  `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '更新者',
  `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
  `deleted` bit(1) NOT NULL DEFAULT b'0' COMMENT '是否删除',
  PRIMARY KEY (`tenant_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='租户表';

LOCK TABLES `system_tenant` WRITE;
/*!40000 ALTER TABLE `system_tenant` DISABLE KEYS */;

INSERT INTO `system_tenant` (`tenant_id`, `name`, `contact_user_id`, `contact_name`, `contact_mobile`, `status`, `domain`, `package_id`, `expire_time`, `account_count`, `creator`, `create_time`, `updater`, `update_time`, `deleted`)
VALUES
	(1,'iyuy',NULL,'1','17321315478',0,'https://xxx',0,'2099-02-19 17:14:16',9999,'1','2021-01-05 17:03:47','1','2022-07-05 10:27:02',b'0'),
	(121,'小租户',110,'2','15601691300',0,'http://wwxxx',111,'2024-03-11 00:00:00',20,'1','2022-02-22 00:56:14','1','2022-07-05 10:27:11',b'0'),
	(122,'测试租户',113,'3','15601691300',0,'https://www',111,'2022-04-30 00:00:00',50,'1','2022-03-07 21:37:58','1','2022-07-05 10:27:16',b'0'),
	(125,'yang',117,'yang',NULL,0,'https://www',111,'2029-03-21 00:00:00',1000,'1','2022-06-26 22:22:26','1','2022-07-05 10:27:28',b'0');

/*!40000 ALTER TABLE `system_tenant` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 tenant_user
# ------------------------------------------------------------

DROP TABLE IF EXISTS `tenant_user`;

CREATE TABLE `tenant_user` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'id',
  `tenant_id` int DEFAULT NULL COMMENT '租户id',
  `user_id` int DEFAULT NULL COMMENT '用户id',
  `status` tinyint(1) DEFAULT '0' COMMENT '状态',
  `CREATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `UPDATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `index_name` (`tenant_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

LOCK TABLES `tenant_user` WRITE;
/*!40000 ALTER TABLE `tenant_user` DISABLE KEYS */;

INSERT INTO `tenant_user` (`id`, `tenant_id`, `user_id`, `status`, `CREATETIME`, `UPDATETIME`)
VALUES
	(1,1,1,0,'2022-07-06 02:25:55','2022-07-06 02:26:05'),
	(2,1,2,0,'2022-07-06 02:25:55','2022-07-06 03:17:59');

/*!40000 ALTER TABLE `tenant_user` ENABLE KEYS */;
UNLOCK TABLES;


# 转储表 user_role
# ------------------------------------------------------------

DROP TABLE IF EXISTS `user_role`;

CREATE TABLE `user_role` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `role_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL,
  `user_id` int DEFAULT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;



# 转储表 wxpay
# ------------------------------------------------------------

DROP TABLE IF EXISTS `wxpay`;

CREATE TABLE `wxpay` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT 'id',
  `user_id` bigint DEFAULT NULL COMMENT '用户id',
  `pay_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT '1' COMMENT '产品类型',
  `tenantid` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '租户id',
  `server_url` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '域名绑定',
  `skey` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '密钥key',
  `secret` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '密钥',
  `paystatus` int DEFAULT NULL COMMENT '支付接口状态',
  `CREATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `UPDATETIME` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `amount` int DEFAULT NULL COMMENT '限额',
  `weight` int DEFAULT NULL COMMENT '权重',
  `status` tinyint(1) DEFAULT NULL COMMENT '接口状态:0正常,1禁用',
  `app_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'appid',
  `mch_id` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'mchid',
  `mch_key` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'mchkey',
  `name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT '公司名',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

LOCK TABLES `wxpay` WRITE;
/*!40000 ALTER TABLE `wxpay` DISABLE KEYS */;

INSERT INTO `wxpay` (`id`, `user_id`, `pay_type`, `tenantid`, `server_url`, `skey`, `secret`, `paystatus`, `CREATETIME`, `UPDATETIME`, `amount`, `weight`, `status`, `app_id`, `mch_id`, `mch_key`, `name`)
VALUES
	(1,1578582016,'1',NULL,NULL,NULL,NULL,0,'2022-07-18 07:14:12','2022-07-19 16:08:09',5000000,10,0,'wx9467e89c199793d4','1516532841','QEW1D6TiJoF9Yq6Ol9oEisZePOUjxOSe','wx'),
	(2,1578582016,'1',NULL,NULL,NULL,NULL,0,'2022-07-18 12:46:04','2022-07-19 16:08:13',5000000,10,0,'wx9467e89c199793d4','1516532841','QEW1D6TiJoF9Yq6Ol9oEisZePOUjxOSe','wx2'),
	(3,1,'1',NULL,NULL,NULL,NULL,0,'2022-07-18 12:46:04','2022-07-19 15:14:34',5000001,10,0,'33','3333','33333','56'),
	(4,1,'1',NULL,NULL,NULL,NULL,0,'2022-07-18 12:46:04','2022-07-19 15:14:37',5000002,10,0,'44','4444','44444','56'),
	(5,1,'1',NULL,NULL,NULL,NULL,0,'2022-07-18 12:46:04','2022-07-19 15:14:39',5000003,10,0,'55','5555','555555','56'),
	(6,1,'1',NULL,NULL,NULL,NULL,0,'2022-07-18 12:46:04','2022-07-19 15:14:41',5000004,10,0,'66','666','666666','56'),
	(7,1,'1',NULL,NULL,NULL,NULL,0,'2022-07-18 12:46:04','2022-07-19 15:14:43',5000005,10,0,'77','7777','77777','56');

/*!40000 ALTER TABLE `wxpay` ENABLE KEYS */;
UNLOCK TABLES;



/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
