-- Deploy gaia:al_wiki_cityvisit_topten_d to mysql

BEGIN;
CREATE TABLE `al_wiki_cityvisit_topten_d` (
    `id` integer AUTO_INCREMENT NOT NULL,
    `city_id` varchar(64),
    `rank` integer NOT NULL,
    `wiki_id` integer NOT NULL,
    `wiki_type` integer NOT NULL COMMENT '0 项目百科,1百科聚合,2品牌百科,3药品仪器材料百科',
    `visit_num` integer,
    PRIMARY KEY (id),
    UNIQUE KEY  CITY_RANK(city_id,rank)
);

COMMIT;
