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

import java.time.LocalDateTime;

/**
 * t_pay_account_fund_awaiting
 * @author 
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "t_pay_account_fund_awaiting", autoResultMap = true)
public class PayAccountFundAwaiting {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 账号id
     */
    private Long accountId;

    /**
     * 帐户状态 0未入账 1已入账
     */
    private Boolean status;

    /**
     * 待入账金额
     */
    private Long awaitingAmount;

    /**
     * 交易号
     */
    private String tradeNo;

    /**
     * 支付渠道 Id(2：PayPal, 3：stripe, 默认为 2)
     */
    private Integer channelId;

    /**
     * 入账时间
     */
    private LocalDateTime toBalanceTime;

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

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

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