CREATE TABLE `server_container_ports` ( `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL, `server_id` integer NOT NULL, `port` integer NOT NULL, `protocol` text DEFAULT 'tcp' NOT NULL, `container` text NOT NULL, `image` text DEFAULT '' NOT NULL, `updated_at` text NOT NULL, FOREIGN KEY (`server_id`) REFERENCES `servers`(`id`) ON UPDATE no action ON DELETE cascade ); --> statement-breakpoint CREATE UNIQUE INDEX `server_container_ports_unique` ON `server_container_ports` (`server_id`,`port`,`protocol`);