package com.yaoai.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("tenant_balances")
public class TenantBalance {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private Long tenantId;

    private BigDecimal balance;
    private BigDecimal totalRecharged;
    private BigDecimal totalSpent;

    @Version
    private Integer version;

    private LocalDateTime updatedAt;
}
