package com.reading.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Tenant Entity
 */
@Data
@TableName("tenants")
public class Tenant {

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

    private String name;

    private String code;

    private String contactName;

    private String contactPhone;

    private String contactEmail;

    private String address;

    private String logoUrl;

    private String status;

    private LocalDateTime expireAt;

    private Integer maxStudents;

    private Integer maxTeachers;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic
    private Integer deleted;

}
