package com.jeesharp.business.modules.food.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 企业团餐账户实体，映射表 {@code biz_food_company_account}。
 *
 * @author jeesharp
 * @since 2026-06-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_food_company_account")
public class FoodCompanyAccount extends BaseEntity<FoodCompanyAccount> {

    /**
     * 企业ID
     */
    private String companyId;

    /**
     * 可用余额
     */
    private BigDecimal availableBalance;

    /**
     * 冻结余额
     */
    private BigDecimal frozenBalance;

    /**
     * 累计充值金额
     */
    private BigDecimal totalRechargeAmount;

    /**
     * 累计消费金额
     */
    private BigDecimal totalConsumeAmount;

    /**
     * 累计退款金额
     */
    private BigDecimal totalRefundAmount;

    /**
     * 状态：0-停用 1-启用 2-冻结
     */
    private Integer status;
}
