package org.dromara.main.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 企业账户流水对象 main_company_account_flow
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("main_company_account_flow")
public class CompanyAccountFlow extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Long id;

    private Long companyId;

    private String flowNo;

    private Integer flowType;

    private BigDecimal amount;

    private Integer balanceType;

    private BigDecimal balanceBefore;

    private BigDecimal balanceAfter;

    private Integer businessType;

    private Long businessId;

    private String businessNo;

    private String remark;

    private String tenantId;

    @TableLogic
    private String delFlag;
}
