-- +migrate Up
CREATE TABLE IF NOT EXISTS `option_items` (
	`id` BIGINT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY COMMENT 'オプションアイテムID',
	`worktype_id` BIGINT UNSIGNED NOT NULL COMMENT 'worktypeの内部ID',
	`item_label` VARCHAR(50) NOT NULL COMMENT 'アイテムラベル',
	`default_value_type` VARCHAR(16) NOT NULL COMMENT 'デフォルト値種別（Default/Blank/LastInput）',
	`initial_value` VARCHAR(50) NOT NULL COMMENT 'オプションアイテム初期値',
	`created_by` VARCHAR(255) COMMENT '作成者',
	`created_at` TIMESTAMP DEFAULT now() COMMENT '作成時刻',
	`updated_by` VARCHAR(255) COMMENT '更新者',
	`updated_at` TIMESTAMP DEFAULT now() on UPDATE now() COMMENT '更新時刻'
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci;

-- +migrate Down
DROP TABLE `option_items`;