package com.sonic.lion.domain.entity;

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.sonic.lion.enums.FreeWithdrawReason;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author code
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "t_free_withdraw_bill", autoResultMap = true)
public class FreeWithdrawFeeBill {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 用户Id
     */
    private Long uid;
    /**
     * 相关配置Id
     */
    private Long freeConfigId;

    /**
     * 交易编号
     */
    private String tradeNo;
    /**
     * 原因
     */
    private FreeWithdrawReason reason;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 最后修改时间
     */
    private LocalDateTime editTime;

    /**
     * 是否删除
     */
    @TableField("is_delete")
    private Boolean deleted;
}
