-- Deploy gaia:2019_6_3_create_table_api_face_one_image to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `api_face_one_image` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `face_id` varchar(128) NOT NULL UNIQUE,
    `user_id` bigint NOT NULL,
    `face_url` varchar(300) NOT NULL,
    `is_online` bool NOT NULL,
    `create_time` datetime(6) NOT NULL,
    `update_time` datetime(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE INDEX `api_face_one_image_user_id_8683b96e` ON `api_face_one_image` (`user_id`);


COMMIT;
