package com.huimv.produce.produce.entity;

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

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;

@Entity
@Table(name = "prod_weight_details")
@Data
@Accessors(chain = true)
public class ProdWeightDetailsEntity 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 Timestamp addDate;

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

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

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

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

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

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

    @Column(name = "serial_number")
    private String serialNumber;

    @Column(name = "car_number")
    private String carNumber;

    @Column(name = "consigner")
    private String consigner;

    @Column(name = "consignee")
    private String consignee;

    @Column(name = "variety")
    private String variety;

    @Column(name = "specification")
    private String specification;

    @Column(name = "deduction_weight")
    private BigDecimal deductionWeight;

    @Column(name = "actual_weight")
    private BigDecimal actualWeight;

    @Column(name = "price")
    private BigDecimal price;

    @Column(name = "money")
    private BigDecimal money;

    @Column(name = "weighing_time")
    private Date weighingTime;

    @Column(name = "weighing_type")
    private String weighingType;

    @Column(name = "unit1")
    private String unit1;

}
