package com.xydl.cac.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "thermal_config")
@ApiModel("热成像测温配置表")
public class ThermalConfig {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    @NotNull(message = "typeId不能为空")
    @Column(name = "type_id")
    @ApiModelProperty("类型Id")
    private Integer typeId;

    @ApiModelProperty("最高温度字段")
    @Column(name = "maxtemp")
    private String maxtemp;

    @ApiModelProperty("最低温度字段")
    @Column(name = "mintemp")
    private String mintemp;

    @ApiModelProperty("平均温度字段")
    @Column(name = "avertemp")
    private String avertemp;
}