package com.webchat.repository.entity.lottery;

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

import javax.persistence.*;
import java.math.BigDecimal;

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

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

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

    /**
     * 活动名称
     */
    @Column(name = "name")
    private String name;

    /**
     * 活动描述
     */
    @Column(name = "description")
    private String description;

    /**
     * 每抽奖一次需要消耗的金币
     */
    @Column(name = "integral")
    private Integer integral;

    /**
     * 活动海报图
     */
    @Column(name = "cover")
    private String cover;

    /**
     * 每次抽奖需要消耗钱数
     */
    @Column(name = "money")
    private BigDecimal money;

    /**
     * 活动状态
     * @see LotteryConstants.LotteryActivityStatus
     */
    @Column(name = "status")
    private Integer status;

}
