
-- ----------------------------
-- 现场勘验记录表
-- ----------------------------
CREATE TABLE `smart_assess`.`ass_investigation`  (
`id` bigint NOT NULL AUTO_INCREMENT,
`investigation_date` datetime NOT NULL COMMENT '现场勘验时间',
`is_first` tinyint(1) NULL DEFAULT 0 COMMENT '是否第一次(0是,1否)',
`is_safety_check` tinyint(1) NULL DEFAULT 0 COMMENT '编制现场安全检查表',
`record_data` varchar(200) NULL COMMENT '现场勘验记录(200字)',
`project_id` bigint NOT NULL COMMENT '项目id',
`location` varchar(60) NULL COMMENT '纬度/经度',
`del_flag` tinyint NULL DEFAULT 0 COMMENT '删除标志(0正常，1删除，默认0)',
`version` int NULL DEFAULT 0 COMMENT '乐观锁',
`create_by` varchar(20) NULL COMMENT '创建人',
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_by` varchar(20) NULL COMMENT '更新人',
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`remark` varchar(100) NULL COMMENT '备注',
PRIMARY KEY (`id`)
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '现场勘验记录表' ROW_FORMAT = DYNAMIC;