-- Deploy gaia:2019_11_18_alert_uniqueOrderNo to mysql

BEGIN;

drop table if exists `pay_merchantpayorder`;
CREATE TABLE `pay_merchantpayorder` (
    `id` varchar(128) NOT NULL PRIMARY KEY,
    `amount` double precision NOT NULL,
    `merchant_id` bigint,
    `pay_amount` double precision NOT NULL,
    `paid_time` datetime(6),
    `third_app_id` varchar(128),
    `uniqueOrderNo` varchar(128) NULL,
    `update_time` datetime(6) NOT NULL,
    `notify_data` longtext,
    `create_time` datetime(6) NOT NULL,
    `status` integer NOT NULL,
    `paytype` integer NOT NULL
)
;

COMMIT;
