package com.sonic.frog.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 礼物打赏记录
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("gift_reward_record")
@ApiModel("礼物打赏记录")
public class GiftRewardRecord {
    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("打赏礼物的用户id")
    @TableField("from_uid")
    private Long fromUid;

    @ApiModelProperty("被打赏礼物AI用户id")
    @TableField("to_uid")
    private Long toUid;

    @ApiModelProperty("订单编号")
    @TableField("order_no")
    private String orderNo;

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

    @ApiModelProperty("礼物名称")
    @TableField("gift_name")
    private String giftName;

    @ApiModelProperty("礼物单价 E-coin数量 ")
    @TableField("price")
    private Long price;

    @ApiModelProperty("本次打赏礼物个数")
    @TableField("num")
    private Integer num;

    @ApiModelProperty("总打赏额")
    @TableField("total")
    private Long total;

    @ApiModelProperty("用户实际的收入（扣除平台抽成后的收入）")
    @TableField("income_total")
    private Long incomeTotal;

    @ApiModelProperty("平台手续费（平台抽成）")
    @TableField("platform_fee")
    private Long platformFee;

    @ApiModelProperty("状态（ENABLED、DISABLED）")
    @TableField("status")
    private String status;

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

    @ApiModelProperty("创建人id")
    @TableField("creator_id")
    private Integer creatorId;
}