BEGIN;
CREATE TABLE `api_campaignlayout` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `campaign_id` integer NOT NULL,
    `module` integer NOT NULL,
    `related` longtext NOT NULL,
    `ordering` integer NOT NULL,
    `is_visible` bool NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `api_campaignlayout` ADD CONSTRAINT `campaign_id_refs_id_63b21c1b` FOREIGN KEY (`campaign_id`) REFERENCES `api_campaign` (`id`);
COMMIT;
