package com.red.circle.other.inner.model.dto.user;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.DTO;
import java.io.Serial;
import java.math.BigDecimal;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户友谊关系卡.
 * </p>
 *
 * @author pengshigang
 * @since 2022-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class FriendshipCardDTO extends DTO {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 发送用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long sendUserId;

  /**
   * 接收用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long acceptUserId;

  /**
   * 卡片类型.
   */
  private String cardType;

  /**
   * 友谊值.
   */
  private BigDecimal friendshipValue;

  /**
   * 0.发送人 1.接收人.
   */
  private Boolean initiate;

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

  /**
   * 修改时间.
   */
  private Timestamp updateTime;

  /**
   * 创建用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createUser;

  /**
   * 修改用户.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateUser;

}
