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_expense")
public class ErpExpense implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 支出ID
     */
    @TableId(value = "expense_id", type = IdType.AUTO)
    private String expenseId;

    /**
     * 关联流水ID
     */
    @TableField("zflow_id")
    private String zflowId;

    /**
     * 支出账户ID
     */
    @TableField("account_id")
    private String accountId;

    /**
     * 支出分类ID
     */
    @TableField("category_id")
    private String categoryId;

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

    @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;
}
