package cn.estsh.i3plus.ext.mes.pojo.bean;

import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

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

/**
 * @PROJECT_NAME: i3plus-mes-panasonic-bu
 * @DESCRIPTION: 字段履历配置表-作用1：修改基础表字段时根据该表判断是否记录字段修改履历
 * @USER: xinwang.yi
 * @DATE: 2022-07-07 16:06
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "SX_MES_DATA_TRAVEL_WITH_PROCESS_BOM",indexes = {
        @Index(columnList = "ITEM_PART_NO"),
        @Index(columnList = "PROCESS_CODE"),
        @Index(columnList = "PID")
})
@Api("MES_数据履历_工序BOM关联字段")
public class SxMesDataTravelWithProcessBom extends BaseBean implements Serializable {

    private static final long serialVersionUID = 5007895729639848817L;

    @Column(name = "PID")
    @ApiParam("pid")
    private Long pid;

    @Column(name = "ITEM_PART_NO")
    @ApiParam("子物料编码")
    private String itemPartNo;

    @Column(name = "ITEM_PART_NAME_RDD")
    @ApiParam("子物料名称")
    private String itemPartNameRdd;

    @Column(name = "PROCESS_CODE")
    @ApiParam("工序代码")
    private String processCode;

    @Column(name = "PROCESS_NAME")
    @ApiParam("工序名称")
    private String processName;

}
