UserAccount.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using Abp.Domain.Entities.Auditing;
  4. using Abp.MultiTenancy;
  5. namespace IwbZero.Authorization.Base.Users
  6. {
  7. /// <summary>
  8. /// Represents a summary user
  9. /// </summary>
  10. [Table("Sys_UserAccounts")]
  11. [MultiTenancySide(MultiTenancySides.Host)]
  12. public class UserAccount : FullAuditedEntity<long>
  13. {
  14. /// <summary>
  15. /// Maximum length of the <see cref="UserName"/> property.
  16. /// </summary>
  17. public const int MaxUserNameLength = 256;
  18. /// <summary>
  19. /// Maximum length of the <see cref="EmailAddress"/> property.
  20. /// </summary>
  21. public const int MaxEmailAddressLength = 256;
  22. public virtual int? TenantId { get; set; }
  23. public virtual long UserId { get; set; }
  24. public virtual long? UserLinkId { get; set; }
  25. [StringLength(MaxUserNameLength)]
  26. public virtual string UserName { get; set; }
  27. [StringLength(MaxEmailAddressLength)]
  28. public virtual string EmailAddress { get; set; }
  29. }
  30. }