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_incomes")
public class Incomes implements Serializable {

    private static final long serialVersionUID = 1L;

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

    /**
     * 收入记录ID
     */
    @TableId(value = "income_id", type = IdType.AUTO)
    private String incomeId;

    /**
     * 收款账户ID
     */
    @TableField("account_id")
    private String accountId;

    /**
     * 收入来源ID
     */
    @TableField("source_id")
    private String sourceId;

    /**
     * 付款方名称
     */
    @TableField("payer")
    private String payer;

    /**
     * 收入金额
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 交易发生日期
     */
    @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;
}
