| 12345678910111213141516171819202122232425 |
- using Microsoft.EntityFrameworkCore;
- using Quadarax.Application.QLiberace.Base.Entities.Interfaces;
- using Quadarax.Application.QLiberace.Common.Entities.Base;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- namespace Quadarax.Application.QLiberace.Base.Entities
- {
- [Table(Constants.Modules.Base.TblTenant,Schema = Constants.Modules.Base.Schema)]
- [Index("Code", Name="IDX_TENANT_CODE", IsUnique = true )]
- public class Tenant : QlbrcEntityTrackedWithId, IStructTenant
- {
- [MaxLength(20)]
- [Required(AllowEmptyStrings =false)]
- public string Code { get; set; } = null!;
- [MaxLength(200)]
- [Required(AllowEmptyStrings =false)]
- public string Name { get; set; } = null!;
- public DateTime? LastAccess { get; set; }
- [Required]
- public bool IsLocked { get; set; }
- }
- }
|