package com.huimv.produce.produce.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Date;

@Entity
@Table(name = "prod_weight_day")
@Data
@Accessors(chain = true)
public class ProdWeightDayEntity implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @Column(name = "add_date")
    private Date addDate;

    /**
     * 毛重
     */
    @Column(name = "gross_weight")
    private Float grossWeight;

    /**
     * 皮重
     */
    @Column(name = "tare_weight")
    private Float tareWeight;

    /**
     * 净重
     */
    @Column(name = "net_weight")
    private Float netWeight;

    @Column(name = "farm_id")
    private Integer farmId;

    @Column(name = "batch_id")
    private Integer batchId;

    @Column(name = "pound_type")
    private String poundType;

}
