-- Deploy gaia:doctor_2017_03_01_service_regiter_add_is_draft to mysql

BEGIN;

CREATE TABLE `doris_servicestat` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `stat_date` varchar(8) NOT NULL,
    `query` varchar(50) NOT NULL,
    `service_id` varchar(50) NOT NULL,
    `pv` integer NOT NULL,
    `uv` integer NOT NULL,
    `max_pv` integer NOT NULL
)
;
CREATE INDEX `doris_servicestat_5a8e60a2` ON `doris_servicestat` (`service_id`);

COMMIT;
