/*
 * Copyright (c) 2024 codvision.com All Rights Reserved.
 */

package com.codvision.basic.entity.inspection;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author codvision
 */
@Data
@Builder
@TableName("tbl_inspection_record_item")
@ApiModel(description = "tbl_inspection_record_item--对表的描述")
public class InspectionRecordItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "检查记录id")
    private Integer recordId;

    @ApiModelProperty(value = "检查项id")
    private Integer checkItemId;

    @ApiModelProperty(value = "照片")
    private String photos;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "是否危险项（是否生成预警事件）（0正常，1异常）")
    private Integer isDanger;

    @Transient
    @ApiModelProperty(value = "检查项文本（回显）")
    private String checkList;

    @ApiModelProperty(value = "是否传成事件，事件id")
    private Integer eventId;
}
