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_order")
public class LotteryOrderEntity extends BaseEntity {

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

    /**
     * 中奖订单id
     */
    @Column(name = "order_id")
    private String orderId;

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

    /**
     * 中奖用户id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 中奖奖品id
     */
    @Column(name = "item_id")
    private Long itemId;

    /**
     * 订单状态
     * @see LotteryConstants.LotteryOrderStatus
     */
    @Column(name = "status")
    private Integer status;
}
