package com.red.circle.wallet.infra.database.rds.entity.freight;

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

/**
 * <p>
 * 经销商卖家信息.
 * </p>
 *
 * @author zongpubin on 2023-07-14 15:28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_freight_seller")
public class FreightSeller extends TimestampBaseEntity {

  @Serial
  private static final long serialVersionUID = 1L;

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

  /**
   * 归属平台.
   */
  @TableField("sys_origin")
  private String sysOrigin;

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

  /**
   * 货运代理(经销商)id.
   */
  @TableField("freight_id")
  private Long freightId;

  /**
   * 经销商授权额度.
   */
  @TableField("earn_gold")
  private BigDecimal earnGold;

  /**
   * 已用额度.
   */
  @TableField("consumption_gold")
  private BigDecimal consumptionGold;

  /**
   * 0.未删除 1.已删除.
   */
  @TableField("is_del")
  private Boolean del;


}
