-- Deploy mimas-talos:talos_add_table_api_community_video_library to mysql

BEGIN;

CREATE TABLE `api_community_video_library` (
	`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
	`source_id` integer NOT NULL,
	`raw_video_url` varchar(128) NOT NULL,
	`water_video_url` varchar(128) NOT NULL,
	`persistent_id` varchar(128) NOT NULL,
	`persistent_status` integer NOT NULL,
	`video_type` integer NOT NULL,
	`create_time` datetime(6) NOT NULL,
	`update_time` datetime(6) NOT NULL
);

CREATE INDEX `api_community_video_library_0afd9202` ON `api_community_video_library` (`source_id`);

COMMIT;
