package com.hzs.common.domain.sale.order;

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

/**
 * 会员商品限购
 *
 * @author hzs
 * @since 2025-03-11
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("SA_ORDER_WARES_LIMIT_SEQ")
@TableName("SA_ORDER_WARES_LIMIT")
public class SaOrderWaresLimit extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 会员主键
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 订单类型 来源于枚举：所属专区
     */
    @TableField("ORDER_TYPE")
    private Integer orderType;

    /**
     * 商品ID
     */
    @TableField("PK_WARES")
    private Integer pkWares;

    /**
     * 商品数量
     */
    @TableField("WARES_QUANTITY")
    private Integer waresQuantity;

    /**
     * 限购时间（年月）
     */
    @TableField("LIMIT_DATE")
    private String limitDate;


}
