CREATE TABLE `wx_car_pay_order` (
  `id` bigint(20) NOT NULL COMMENT '主键ID',
  `tenant_id` varchar(5) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '租户ID',
  `parent_tenant_id` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '父租户ID',
  `create_time` datetime NOT NULL COMMENT '创建时间',
  `update_time` datetime NOT NULL COMMENT '更新时间',
  `c_user_id` bigint(20) NOT NULL COMMENT '用户ID',
  `c_user_phone` varchar(30) COMMENT '用户手机号',
  `car_number` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '车牌号',
  `pay_amount` int(11) NOT NULL COMMENT '支付金额(分)',
  `pay_time` datetime NOT NULL COMMENT '支付时间',
  `transaction_id` varchar(36) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '微信生成的订单号',
  `park_order_no` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '车场订单号',
  `merchant_account_type` int(1) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '商户收款账户类型EnumCarPayAmountType',
  `merchant_account` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '商户收款账户',
  `park_notify` int(1) NOT NULL DEFAULT '0' COMMENT '是否已通知车场EnumYesOrNo',
  `notify_fail_reason` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '通知失败原因',
  `notify_count` int(3) NOT NULL DEFAULT '0' COMMENT '通知次数',
  `car_vendor` int(1) NOT NULL COMMENT '车场类型EnumCarVendor',
  PRIMARY KEY (`id`),
  UNIQUE KEY `id_UNIQUE` (`id`),
  UNIQUE KEY `pay_order_no` (`park_order_no`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='支付单表';

CREATE TABLE wx_car_pay_order_0      LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_1      LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_2      LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_3      LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_4      LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_5      LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_6      LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_7      LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_8      LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_9      LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_10     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_11     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_12     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_13     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_14     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_15     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_16     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_17     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_18     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_19     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_20     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_21     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_22     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_23     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_24     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_25     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_26     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_27     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_28     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_29     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_30     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_31     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_32     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_33     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_34     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_35     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_36     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_37     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_38     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_39     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_40     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_41     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_42     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_43     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_44     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_45     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_46     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_47     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_48     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_49     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_50     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_51     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_52     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_53     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_54     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_55     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_56     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_57     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_58     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_59     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_60     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_61     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_62     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_63     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_64     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_65     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_66     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_67     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_68     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_69     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_70     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_71     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_72     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_73     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_74     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_75     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_76     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_77     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_78     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_79     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_80     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_81     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_82     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_83     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_84     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_85     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_86     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_87     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_88     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_89     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_90     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_91     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_92     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_93     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_94     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_95     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_96     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_97     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_98     LIKE wx_car_pay_order;
CREATE TABLE wx_car_pay_order_99     LIKE wx_car_pay_order;

drop table wx_car_pay_order;

ALTER TABLE `mallink`.`wx_park` 
ADD COLUMN `support_pay` int(1)  COMMENT '会员小程序是否支持支付enumYesOrNo';

ALTER TABLE `mallink`.`wx_park` 
ADD COLUMN `paid_call_back` varchar(100)  COMMENT '支付完成回调地址';

alter table wx_profit_payment_receiver
add column `receiver_params` json COMMENT '其他配置参数';

