-- Deploy mimas:2019-07-25-answer-add-low_quality to mysql

BEGIN;

--
-- Create model UserFeedback
--
CREATE TABLE `api_user_feedback` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `element_type` varchar(5) NOT NULL,
    `element_id` varchar(100) NOT NULL,
    `feedback_type` integer NOT NULL,
    `user_id` integer NOT NULL,
    `device_id` varchar(50) NOT NULL,
    `create_time` datetime(6) NOT NULL
);
CREATE INDEX `api_user_feedback_7057e840` ON `api_user_feedback` (`element_id`);
CREATE INDEX `api_user_feedback_e8701ad4` ON `api_user_feedback` (`user_id`);
CREATE INDEX `api_user_feedback_9379346c` ON `api_user_feedback` (`device_id`);

COMMIT;
