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

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 java.io.Serial;
import java.io.Serializable;
import java.sql.Timestamp;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户所得贵族实际权益表.
 * </p>
 *
 * @author pengshigang
 * @since 2022-06-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_props_vip_actual_equity")
public class PropsVipActualEquity implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 用户.
   */
  @TableField("user_id")
  private Long userId;

  /**
   * 道具ID.
   */
  @TableField("props_id")
  private Long propsId;

  /**
   * 过期时间.
   */
  @TableField("expire_time")
  private Timestamp expireTime;

  @TableField(value = "create_time")
  private Timestamp createTime;

  @TableField(value = "update_time", update = "now()")
  private Timestamp updateTime;

  @TableField("create_user")
  private Long createUser;

  @TableField("update_user")
  private Long updateUser;

}
