BEGIN;


CREATE TABLE `statistic_service_smart_rank_v2` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `service_id` integer NOT NULL,
    `stat_date` date NOT NULL,
    `ctr_value` double precision NOT NULL,
    `org_income_value` double precision NOT NULL,
    `org_deal_value` double precision NOT NULL
)
;


CREATE INDEX `statistic_service_smart_rank_v2_service_id_stat_date` ON `statistic_service_smart_rank_v2` (`service_id`,`stat_date`);

COMMIT;

