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 pengshigang
 * @since 2021-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_freight_balance")
public class FreightBalance 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;

  /**
   * 获得糖果.
   */
  @TableField("earn_points")
  private BigDecimal earnPoints;

  /**
   * 消费糖果.
   */
  @TableField("consumption_points")
  private BigDecimal consumptionPoints;

  /**
   * 0.未关闭 1.已关闭.
   */
  @TableField("is_close")
  private Boolean close;

  /**
   * 0.显示 1.不显示.
   */
  @TableField("is_display")
  private Boolean display;

  /**
   * 是否经销商 0.否 1.是.
   */
  @TableField("dealer")
  private Boolean dealer;

  /**
   * 是否超级经销商 0.否 1.是.
   */
  @TableField("super_dealer")
  private Boolean superDealer;

  /**
   * 支持的国家（多个用逗号分隔）.
   */
  @TableField("supported_countries")
  private String supportedCountries;

  /**
   * 联系方式.
   */
  @TableField("contact_info")
  private String contactInfo;

  /**
   * H5显示开关：0-不显示，1-显示.
   */
  @TableField("h5_display")
  private Boolean h5Display;

  /**
   * 授权卖家数量.
   */
  @TableField("seller_quantity")
  private Integer sellerQuantity;

}
