using System.ComponentModel; using System.ComponentModel.DataAnnotations; using Quadarax.Application.QLiberace.Base.Entities.Interfaces; using Quadarax.Application.QLiberace.Common.Entities.Base; using System.ComponentModel.DataAnnotations.Schema; using Microsoft.EntityFrameworkCore; namespace Quadarax.Application.QLiberace.Base.Entities { [Table(Constants.Modules.Base.TblUser,Schema = Constants.Modules.Base.Schema)] [Index("LoginName", Name="IDX_LOGIN_NAME", IsUnique = true )] public class User : QlbrcEntityTrackedWithId, IStructUser { [MaxLength(100)] [Required(AllowEmptyStrings = false)] public string LoginName { get; set; } = null!; [Required] [DefaultValue(false)] public bool IsLocked { get; set; } } }