-- Deploy gaia:api_2017_01_13_alter_table_api_phone_call_record to mysql

BEGIN;

CREATE TABLE `api_phone_call_record` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `phone_ext` varchar(10),
    `call_id` varchar(100) NOT NULL,
    `added_at` datetime NOT NULL
);

alter table `api_phone_call_record` ADD INDEX call_id_index (`call_id`);

COMMIT;
