package com.liquidnet.service.goblin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @Author: wll
 * @Description:
 * @Date:Create：in 2022/4/19 2:23 下午
 */

@Data
@EqualsAndHashCode(callSuper = false)
public class GoblinNftExSku {


    private static final long serialVersionUID = 1L;

    @TableId(value = "mid", type = IdType.AUTO)
    private Long mid;


    /**
     * 活动id
     */
    private String activityId;

    /**
     * 商品id
     */
    private String spuId;


    /**
     * 款式id
     */
    private String skuId;

    /**
     * 是否盲盒 0：否   1：是
     */
    private String unbox;


    /**
     * 兑换库存
     */
    private Integer exStock;

    /**
     * 兑换限购
     */
    private Integer exLimit;

    /**
     * 店铺id
     */
    private String storeId;

    /**
     * 兑换生效开始时间
     */
    private LocalDateTime exStartTime;


    /**
     * 兑换生效结束时间
     */
    private LocalDateTime exStopTime;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 修改时间
     */
    private LocalDateTime updatedAt;


    private  static  final GoblinNftExSku obj = new GoblinNftExSku();

    public  static GoblinNftExSku getNew(){
        try{
           return  (GoblinNftExSku) obj.clone();
        }catch (CloneNotSupportedException e){
            return new GoblinNftExSku();
        }

    }













}
