package com.sonic.lion.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sonic.lion.enums.FreeWithdrawReason;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * account_buff
 *
 * @author
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "t_free_withdraw_config", autoResultMap = true)
public class FreeWithdrawConfig implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 用户ID
     */
    private Long uid;
    /**
     * 开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 提现手续费减免比例
     */
    private BigDecimal rate;

    /**
     * 获得原因
     */
    private FreeWithdrawReason reason;

    private LocalDateTime createTime;

    private LocalDateTime editTime;

    private Boolean isDelete;

    private static final long serialVersionUID = 1L;

}