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',
  `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(36) COLLATE utf8mb4_unicode_ci DEFAULT '' COMMENT '车场订单号',
  `merchant_account` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '商户收款账户',
  `merchant_id` int(20) NOT NULL COMMENT '商户编号',
  `merchant_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '商户名称',
  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='支付单表';

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 '支付完成回调地址';
