-- Deploy gaia:gaia_2019_02_14_add_spider_third_platform_table to mysql

BEGIN;

CREATE TABLE `api_third_platform_serviceitem` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `third_platform_serviceitem_id` integer NOT NULL UNIQUE,
    `sku_name` varchar(128) NOT NULL,
    `doctor_name` varchar(128) NOT NULL,
    `hospital_name` varchar(128) NOT NULL,
    `sku_price` integer NOT NULL,
    `reservation_nums` varchar(128) NOT NULL,
    `created_time` datetime(6) NOT NULL,
    `update_time` datetime(6) NOT NULL,
    `is_online` bool NOT NULL,
    `serviceitem_id` bigint NOT NULL,
    `platform_type` integer NOT NULL
)
;

COMMIT;
