using System.ComponentModel.DataAnnotations; namespace Fengling.AuthService.Models; public class Tenant { [Key] public long Id { get; set; } [MaxLength(50)] [Required] public string TenantId { get; set; } = string.Empty; [MaxLength(100)] [Required] public string Name { get; set; } = string.Empty; [MaxLength(50)] [Required] public string ContactName { get; set; } = string.Empty; [MaxLength(100)] [Required] [EmailAddress] public string ContactEmail { get; set; } = string.Empty; [MaxLength(20)] public string? ContactPhone { get; set; } public int? MaxUsers { get; set; } public DateTime CreatedAt { get; set; } = DateTime.UtcNow; [MaxLength(500)] public string? Description { get; set; } [MaxLength(20)] public string Status { get; set; } = "active"; public DateTime? ExpiresAt { get; set; } public DateTime? UpdatedAt { get; set; } public bool IsDeleted { get; set; } public ICollection Users { get; set; } = new List(); }