DROP TABLE IF EXISTS `bug_record`;
CREATE TABLE `bug_record` (
	`record_id` VARCHAR(50) NOT NULL COMMENT '记录id' ,
	`bug_id` VARCHAR(50) NULL DEFAULT NULL COMMENT '缺陷id' ,
	`record_field` VARCHAR(50) NULL DEFAULT NULL COMMENT '变更字段' ,
	`record_value` VARCHAR(300) NULL DEFAULT NULL COMMENT '变更值' ,
	`updated_by` VARCHAR(32) NULL DEFAULT NULL COMMENT '变更人' ,
	`updated_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '变更时间',
	`created_by` VARCHAR(32) NULL DEFAULT NULL COMMENT '创建人' ,
	`created_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
	`tenant_id` VARCHAR(32) NULL DEFAULT NULL COMMENT '租户id' ,
	PRIMARY KEY (`record_id`) USING BTREE,
	INDEX `bug_id` (`bug_id`) USING BTREE
)
COMMENT='缺陷变更记录表'
ENGINE=InnoDB
COLLATE='utf8mb4_bin'
;
--CREATE TABLE `bug_record` (
--	`record_id` VARCHAR(50) NOT NULL COMMENT '记录id' COLLATE 'utf8_general_ci',
--	`bug_id` VARCHAR(50) NULL DEFAULT NULL COMMENT '缺陷id' COLLATE 'utf8_general_ci',
--	`record_field` VARCHAR(50) NULL DEFAULT NULL COMMENT '变更字段' COLLATE 'utf8_general_ci',
--	`record_value` VARCHAR(300) NULL DEFAULT NULL COMMENT '变更值' COLLATE 'utf8_general_ci',
--	`updated_by` VARCHAR(32) NULL DEFAULT NULL COMMENT '变更人' COLLATE 'utf8_general_ci',
--	`updated_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '变更时间',
--	`created_by` VARCHAR(32) NULL DEFAULT NULL COMMENT '创建人' COLLATE 'utf8_general_ci',
--	`created_time` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
--	`tenant_id` VARCHAR(32) NULL DEFAULT NULL COMMENT '租户id' COLLATE 'utf8_general_ci',
--	PRIMARY KEY (`record_id`) USING BTREE,
--	INDEX `bug_id` (`bug_id`) USING BTREE
--)
--COMMENT='缺陷变更记录表'
--COLLATE='utf8_bin'
--ENGINE=InnoDB
--;

