package com.kym.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户账户表
 * </p>
 *
 * @author skyline
 * @since 2023-08-07
 */
@Getter
@Setter
@TableName("t_account")
@Accessors(chain = true)
public class Account extends BaseEntity {

    public static final int MIN_BALANCE = 200;
    /**
     * 石斑鱼主板请求启动配置优惠折扣率：100代表无折扣
     */
    public static final int NO_DISCOUNT = 100;
    private static final long serialVersionUID = 1L;
    /**
     * 用户id
     */
    private Long userId;

    /**
     * 余额
     */
    private Integer balance;

    /**
     * 充值余额
     */
    private Integer rechargeBalance;

    /**
     * 赠款余额
     */
    private Integer grantsBalance;

    /**
     * 冻结金额
     */
    private Integer frozenAmount;

    /**
     * 不可退优惠金额（分）
     */
    private Integer discountAmount;

    /**
     * 状态： 0禁用 1启用
     */
    private Integer status;
}
