-- Deploy gaia:2020_06_05_create_user_seal_log_table to mysql

BEGIN;

-- create user seal log table

CREATE TABLE user_seal_log (
  `id` INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `user_id` BIGINT UNSIGNED NULL,
  `user_name` VARCHAR(32) NULL DEFAULT '',
  `item` TINYINT UNSIGNED NULL,
  `seal_time_type` TINYINT UNSIGNED NULL,
  `seal_time_start` DATETIME NULL,
  `seal_time_end` DATETIME NULL,
  `seal_duration` INT UNSIGNED NULL,
  `seal_type` TINYINT UNSIGNED NULL,
  `seal_reason` TEXT NULL,
  `seal_status` TINYINT UNSIGNED NULL,
  `cancel_seal_reason` VARCHAR(128) NULL DEFAULT '',
  `cancel_seal_type` TINYINT UNSIGNED NULL DEFAULT 0,
  `cancel_seal_time` DATETIME NULL
)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;


COMMIT;
