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.domain.enums.UserThirdStatus;
import com.sonic.lion.enums.PayChannel;
import com.sonic.lion.enums.ThirdAccountType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * t_pay_account_fund_third
 * @author 
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_pay_account_fund_third")
public class PayAccountFundThird {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

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

    /**
     * 资金帐号ID
     */
    private Long accountFundId;

    /**
     * 第三方类型
     */
    private ThirdAccountType appType;

    /**
     * 第三方关联ID
     */
    private String openId;

    /**
     * 扩展信息
     */
    private String extend;

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

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

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

    /**
     * 三方账户邮箱
     */
    private String email;

    /**
     * 三方账户名
     */
    private String name;

    /**
     * 渠道id
     */
    private PayChannel channelId;

    /**
     * 状态
     */
    private UserThirdStatus status;
}