-- Deploy gaia:2019_11_12_api_orderuserinfo to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_orderuserinfo` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `order_id` varchar(30),
    `hospitalpay_id` varchar(30),
    `status` varchar(20) NOT NULL,
    `device_id` varchar(100),
    `ip` varchar(255) NOT NULL
)
;
CREATE INDEX `api_orderuserinfo_6d993ecb` ON `api_orderuserinfo` (`device_id`);
CREATE INDEX `api_orderuserinfo_6259660e` ON `api_orderuserinfo` (`ip`);

COMMIT;
