package com.cool.store.entity;

import lombok.Builder;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 提现申请实体
 */
@Data
@Builder
@Table(name = "zxjp_withdraw_application")
public class WithdrawApplicationDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * 提现申请单号
     */
    @Column(name = "withdraw_no")
    private String withdrawNo;

    /**
     * 提现账户名称
     */
    @Column(name = "account_name")
    private String accountName;

    @Column(name = "account_no")
    private String accountNo;

    /**
     * 提现金额
     */
    @Column(name = "amount")
    private BigDecimal amount;

    /**
     * 到账银行卡号
     */
    @Column(name = "bank_card_no")
    private String bankCardNo;

    /**
     * 银行所属银行
     */
    @Column(name = "bank_name")
    private String bankName;

    /**
     * 状态（1-已分账 2-分账失败 3-分账中 5-待分账）
     */
    @Column(name = "status")
    private Integer status;

    /**
     * 失败原因
     */
    @Column(name = "fail_reason")
    private String failReason;

    /**
     * 创建人
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;
}
