package com.wzj.soopin.order.domain.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;

@Data
@Schema(description = "红包领取记录实体")
@TableName("oms_red_packet_receive")
public class RedPacketReceive {
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键ID")
    private Long id;

    @TableField("packet_id")
    @Schema(description = "红包id")
    private Long packetId;

    @TableField("receiver_id")
    @Schema(description = "领取者id")
    private Long receiverId;

    @TableField("amount")
    @Schema(description = "领取金额")
    private BigDecimal amount;

    @TableField("recevice_time")
    @Schema(description = "领取时间")
    private DateTime receviceTime;

}
