package com.mini.capi.biz.domain;

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 java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 账户间转账记录
 * </p>
 *
 * @author gaoxq
 * @since 2025-08-25
 */
@Getter
@Setter
@TableName("biz_transfers")
public class Transfers implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 转账记录ID
     */
    @TableId(value = "transfer_id", type = IdType.AUTO)
    private String transferId;

    /**
     * 转出账户ID
     */
    @TableField("from_account")
    private String fromAccount;

    /**
     * 转入账户ID
     */
    @TableField("to_account")
    private String toAccount;

    /**
     * 转账金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 手续费
     */
    @TableField("fee")
    private BigDecimal fee;

    /**
     * 币种
     */
    @TableField("currency")
    private String currency;

    /**
     * 交易日期
     */
    @TableField("transaction_date")
    private LocalDate transactionDate;

    /**
     * 交易描述
     */
    @TableField("description")
    private String description;

    /**
     * 转账编号
     */
    @TableField("order_no")
    private String orderNo;

    /**
     * 租户id
     */
    @TableField("f_tenant_id")
    private String fTenantId;

    /**
     * 流程id
     */
    @TableField("f_flow_id")
    private String fFlowId;

    /**
     * 流程任务主键
     */
    @TableField("f_flow_task_id")
    private String fFlowTaskId;

    /**
     * 流程任务状态
     */
    @TableField("f_flow_state")
    private Integer fFlowState;
}
