1 CREATE TABLE `advertisements` (
2 `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
3 `podcast_id` integer NOT NULL,
4 `title` varchar(100) NOT NULL,
5 `text` longtext NOT NULL,
6 `start` datetime NOT NULL,
7 `end` datetime NOT NULL
10 ALTER TABLE `advertisements` ADD CONSTRAINT `podcast_id_refs_id_534966` FOREIGN KEY (`podcast_id`) REFERENCES `podcast` (`id`);