| 12345678910111213141516171819202122232425262728293031 |
- 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 : QlbrcEntityTracked, IStructUser
- {
- [MaxLength(100)]
- [Required(AllowEmptyStrings = false)]
- public string LoginName { get; set; } = null!;
- [Required]
- [DefaultValue(false)]
- public bool IsLocked { get; set; }
- [NotMapped]
- public virtual ICollection<TenantUser> Tenants { get; set; }
- public User()
- {
- Tenants = new List<TenantUser>();
- }
- }
- }
|