package com.red.circle.order.infra.database.rds.entity.order;

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

/**
 * <p>
 * 购买订单朋友关系记录.
 * </p>
 *
 * @author pengshigang
 * @since 2022-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_purchase_friendship_record")
public class OrderPurchaseFriendshipRecord extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

  /**
   * 主键标识.
   */
  @TableId("id")
  private Long id;

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

  /**
   * 朋友.
   */
  @TableField("friend_id")
  private Long friendId;

  /**
   * 订单id.
   */
  @TableField("order_id")
  private String orderId;

  /**
   * 产品id.
   */
  @TableField("product_id")
  private String productId;

  /**
   * 描述.
   */
  @TableField("description")
  private String description;

}
