-- Deploy mimas-talos:talos_2020_04_18_create_table_tractate_reply_images to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_tractate_reply_images` (
	`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
	`reply_id` integer NOT NULL,
	`image_url` varchar(300) NOT NULL,
	`width` integer NOT NULL,
	`height` integer NOT NULL,
	`create_time` datetime(6) NOT NULL,
	`update_time` datetime(6) NOT NULL
);

CREATE INDEX `api_tractate_reply_images_bbc2f847` ON `api_tractate_reply_images` (`reply_id`);

COMMIT;
