package com.erp.example.seata.entity;

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

/**
 * 账户实体
 */
@Data
public class Account {
    private Long id;
    private Long customerId;         // 客户ID
    private BigDecimal balance;      // 账户余额
    private BigDecimal frozenAmount;  // 冻结金额
    private BigDecimal availableAmount; // 可用金额（计算得出）
    private String currency;          // 币种
    private LocalDateTime updateTime;
}
