package com.webchat.repository.entity.lottery;

import com.webchat.repository.entity.BaseEntity;
import lombok.Data;

import javax.persistence.*;

/**
 * @Author 程序员七七
 * @webSite https://www.coderutil.com
 * @Date 2022/11/16 23:46
 * @description
 */
@Data
@Entity
@Table(name = "web_chat_lottery_item")
public class LotteryItemEntity extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    protected Long id;

    /**
     * 活动ID
     */
    @Column(name = "activity_id")
    private String activityId;

    /**
     * 奖品类型
     */
    @Column(name = "type")
    private Integer type;

    /**
     * 奖品名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 奖品icon
     */
    @Column(name = "icon")
    private String icon;

    /**
     * 奖品封面图
     */
    @Column(name = "cover")
    private String cover;

    /**
     * 卡槽 1，2，3 ...... 8
     */
    @Column(name = "slot")
    private Integer slot;

    /**
     * 库存数量
     */
    @Column(name = "stock")
    private Integer stock;
}
