-- Deploy gaia:2019_09_05_add_api_bdtransfer_communicationrecord_img to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_bdtransfer_communicationrecord_img` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `bdtransfercommunicationrecord_id` integer NOT NULL,
    `image_url` varchar(200) NOT NULL
)
;
ALTER TABLE `api_bdtransfer_communicationrecord_img` ADD CONSTRAINT `bdtransfercommunicationrecord_id_refs_id_4c9b76d4` FOREIGN KEY (`bdtransfercommunicationrecord_id`) REFERENCES `api_bdtransfer_communicationrecord` (`id`);
CREATE INDEX `api_bdtransfer_communicationrecord_img_6336e27d` ON `api_bdtransfer_communicationrecord_img` (`bdtransfercommunicationrecord_id`);

COMMIT;
