package com.hzs.common.domain.scm.pub;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 订单规格明细
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("SCM_ITEM_SPECS_SEQ")
@TableName("SCM_ITEM_SPECS")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ScmItemSpecs extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 订单类型  EScmOrderType
     */
    @TableField("ORDER_TYPE")
    private Integer orderType;

    /**
     * 主表主键
     */
    @TableField("PK_ORDER")
    private Long pkOrder;

    /**
     * 明细表主键
     */
    @TableField("PK_ORDER_ITEMS")
    private Long pkOrderItems;

    /**
     * 规格类型主键
     */
    @TableField("PK_SPECS_TYPE")
    private Integer pkSpecsType;

    /**
     * 规格主键
     */
    @TableField("PK_SPECS")
    private Integer pkSpecs;

    /**
     * 规格名称
     */
    @TableField("SPECS_NAME")
    private String specsName;
}
