package com.yaoai.domain.entity;

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

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

@Data
@TableName("tenants")
public class Tenant {

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

    private String name;

    private String slug;

    /** free / pro / enterprise */
    private String plan;

    /** 1=正常 0=禁用 */
    private Integer status;

    private BigDecimal credits;

    private BigDecimal frozenCredits;

    private LocalDateTime suspendedAt;

    private Long suspendedBy;

    private String suspendedReason;

    private String notes;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private LocalDateTime deletedAt;
}
