package com.njcn.gather.tool.parsepqdif.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.JsonNode;
import com.njcn.gather.tool.parsepqdif.typehandler.JsonNodeTypeHandler;
import lombok.Data;

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

/**
 * PQDIF 文件存储和解析结果记录。
 */
@Data
@TableName(value = "cs_pqdif_path", autoResultMap = true)
public class CsPqdifPathPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private String id;

    @TableField("Name")
    private String name;

    @TableField("File_Path")
    private String filePath;

    @TableField("File_Name")
    private String fileName;

    @TableField("Record_Count")
    private Long recordCount;

    @TableField("Observation_Count")
    private Long observationCount;

    @TableField("Sample_Value_Count")
    private Integer sampleValueCount;

    @TableField("Result")
    private Integer result;

    @TableField(value = "Msg", typeHandler = JsonNodeTypeHandler.class)
    private JsonNode msg;

    @TableField("State")
    private Integer state;

    @TableField("Create_By")
    private String createBy;

    @TableField("Create_Time")
    private LocalDateTime createTime;

    @TableField("Update_By")
    private String updateBy;

    @TableField("Update_Time")
    private LocalDateTime updateTime;
}
