-- Deploy gaia:2018_10_11_create_table_channel_gift_statistics to mysql

BEGIN;

CREATE TABLE `api_channelgiftstatistics` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `channel_gift_id` integer NOT NULL UNIQUE,
    `claimed_count` integer NOT NULL
)
;

CREATE INDEX `api_channelgiftstatistics_60114dfa` ON `api_channelgiftstatistics` (`channel_gift_id`, `claimed_count`);
COMMIT;
