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