package com.red.circle.other.infra.database.mongo.entity.gift;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 高级礼物墙.
 *
 * @author pengshigang on 2022/8/10
 */
@Data
@Accessors(chain = true)
@FieldDefaults(level = AccessLevel.PRIVATE)
@Document("premium_gift_wall_mongo")
public class PremiumGiftWallMongo implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 记录Id.
   */
  @Id
  String id;

  /**
   * 归属系统平台.
   */
  String sysOrigin;

  /**
   * 数量.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  Integer quantity;

  /**
   * 礼物ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  Long giftId;

  /**
   * 发送人ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  Long sendUserId;

  /**
   * 接收人ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  Long acceptUserId;

  /**
   * 创建时间.
   */
  Timestamp createTime;

}
