-- Deploy gaia:modify_soyoung_service_item_table to mysql

BEGIN;

DROP TABLE `api_soyoungskugengmeiskurelation`;
DROP TABLE `api_soyoungserviceitem`;

CREATE TABLE `api_soyoung_serviceitem` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `soyoung_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
)
;

COMMIT;
