package com.kym.entity.miniapp;

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

import java.io.Serializable;
import java.time.LocalDateTime;

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

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    private Long userId;

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

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

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

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