package com.sonic.frog.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * AI用户收到礼物表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ai_user_gift")
public class AiUserGift {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * AI的id
     */
    @TableField("ai_id")
    private Long aiId;

    /**
     * 礼物id
     */
    @TableField("gift_id")
    private Integer giftId;

    /**
     * 收到礼物数量
     */
    @TableField("num")
    private Integer num;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("edit_time")
    private LocalDateTime editTime;
}