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_account")
public class ErpAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 账户标识
     */
    @TableId(value = "account_id", type = IdType.AUTO)
    private String accountId;

    /**
     * 账户名称
     */
    @TableField("account_name")
    private String accountName;

    /**
     * 账户类型
     */
    @TableField("account_type")
    private String accountType;

    /**
     * 账户卡号
     */
    @TableField("account_code")
    private String accountCode;

    /**
     * 初始余额
     */
    @TableField("initial_balance")
    private BigDecimal initialBalance;

    /**
     * 当前余额
     */
    @TableField("current_balance")
    private BigDecimal currentBalance;

    /**
     * 是否激活（1-激活，0-停用）
     */
    @TableField("is_active")
    private String isActive;

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