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.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 收支流水总表
 * </p>
 *
 * @author gaoxq
 * @since 2025-11-12
 */
@Getter
@Setter
@TableName("erp_transaction_flow")
public class ErpTransactionFlow implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 流水ID
     */
    @TableId(value = "flow_id", type = IdType.AUTO)
    private String flowId;

    /**
     * 交易名称
     */
    @TableField("flow_name")
    private String flowName;

    /**
     * 交易类型
     */
    @TableField("transaction_type")
    private String transactionType;

    /**
     * 交易金额（正数）
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 交易时间
     */
    @TableField("transaction_time")
    private LocalDateTime transactionTime;

    /**
     * 交易账户
     */
    @TableField("account_id")
    private String accountId;

    /**
     * 交易分类
     */
    @TableField("category_id")
    private String categoryId;

    /**
     * 交易备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 是否记账
     */
    @TableField("is_finish")
    private String isFinish;

    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 租户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;
}
