package com.fizz.business.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("plant_config")
@Schema(name = "PlantConfig对象", description = "配置数据")
public class PlantConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "名称")
    private String varname;

    @Schema(description = "arrayindex")
    private Integer arrayindex;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "值")
    private String value;

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timestamp;
}
