package com.red.circle.other.app.dto.clientobject.pet;

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

/**
 * <p>
 * 宠物池.
 * </p>
 *
 * @author pengshigang
 * @since 2021-10-14
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class PetBagCO extends ClientObject {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 用户ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long userId;

  /**
   * 宠物ID.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long petId;

  /**
   * 喂食次数.
   */
  private Integer feedingNum;

  /**
   * 消费粮食.
   */
  private BigDecimal consumeFood;

  /**
   * 宠物阶段.
   */
  private String petStage;

  /**
   * 最近喂食时间.
   */
  private Timestamp latestFeedingTime;

}
