package com.red.circle.other.infra.database.rds.entity.pet;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.red.circle.framework.mybatis.entity.TimestampBaseEntity;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 宠物收益领取记录.
 * </p>
 *
 * @author pengshigang
 * @since 2021-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pet_income_receive")
public class PetIncomeReceive extends TimestampBaseEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  private Long id;

  /**
   * 收益人.
   */
  @TableField("income_user_id")
  private Long incomeUserId;

  /**
   * 宠物主人.
   */
  @TableField("pet_user_id")
  private Long petUserId;

  /**
   * 宠物ID.
   */
  @TableField("pet_id")
  private Long petId;

  /**
   * 收益明细ID.
   */
  @TableField("income_details_id")
  private Long incomeDetailsId;

  /**
   * 收益数量.
   */
  @TableField("income_quantity")
  private BigDecimal incomeQuantity;

  /**
   * 收益余额.
   */
  @TableField("income_balance")
  private BigDecimal incomeBalance;

  /**
   * 收益类型.
   */
  @TableField("type")
  private String type;

}
