package com.huimv.apiservice.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 猪舍和猪关联表
 *
 * @author yinhao
 * @email yinhao@163.com
 * @date 2021-05-07 15:32:42
 */
@Data
@TableName("mgt_pigsty_pig")
public class PigstyPigEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Integer id;
    /**
     * 猪舍id
     */
    private Integer pigstyId;
    /**
     * 栏位
     */
    private String field;
    /**
     * 栏期
     */
    private Integer period;
    /**
     * 猪耳标号
     */
    private String eartag;
    /**
     * 入栏时间
     */
    private Date intoFenceTime;
    /**
     * 离栏时间
     */
    private Date outFenceTime;
    /**
     * 删除状态 0正常 1已删除
     */
    @TableLogic
    private Integer deleted;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
