-- Deploy mimas-qa:2020_05_13_create_table_for_quick_search to mysql

BEGIN;

-- XXX Add DDLs here.

CREATE TABLE `api_quick_search_content_keyword` (
	`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
	`content_id` integer NOT NULL,
	`content_type` varchar(128) NOT NULL,
	`keywords` longtext NOT NULL,
	`create_time` datetime(6) NOT NULL,
	`update_time` datetime(6) NOT NULL
);

CREATE INDEX `api_quick_search_content_keyword_content_id_d6eb15b9_idx` ON `api_quick_search_content_keyword` (`content_id`, `content_type`);

COMMIT;
