package com.sw.mes.yb.seed.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@Table(name = "seed_materials_record")
@DynamicUpdate
@DynamicInsert
public class SeedMaterialsRecord {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 工单号
     */
    @Column
    private String billCode;
    /**
     *物料编码
     */
    @Column
    private String materialCode;
    /**
     *车间名称
     */
    @Column
    private String workshopName;
    /**
     *车间id
     */
    @Column
    private Integer workshopId;
    /**
     *炉号
     */
    @Column
    private String deviceCode;
    /**
     *炉次号
     */
    @Column
    private String deviceBatch;
    /**
     *复投次数
     */
    @Column
    private Integer rethrowsNumber;
    /**
     *籽晶编码
     */
    @Column
    private String seedCode;
    /**
     *领用人
     */
    @Column
    private String createBy;
    /**
     * 创建日期
     */
    @Column
    private Date createDate;
}
