You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
783 B
31 lines
783 B
3 years ago
|
using Easy.DDD.Domain.Entities;
|
||
|
|
||
3 years ago
|
namespace Identity.Api.Clean.Domain.Entites;
|
||
3 years ago
|
|
||
|
public class IdentityUserOrganizationUnit : Entity<Guid>
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 此实体的租户 ID。
|
||
|
/// </summary>
|
||
|
public virtual Guid? TenantId { get; protected set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 用户 ID。
|
||
|
/// </summary>
|
||
|
public virtual Guid UserId { get; protected set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 相关ID <see cref="OrganizationUnit"/>.
|
||
|
/// </summary>
|
||
|
public virtual Guid OrganizationUnitId { get; protected set; }
|
||
|
|
||
3 years ago
|
public IdentityUserOrganizationUnit(Guid id, Guid userId, Guid organizationUnitId, Guid? tenantId = null)
|
||
3 years ago
|
{
|
||
3 years ago
|
Id = id;
|
||
|
UserId = userId;
|
||
|
OrganizationUnitId = organizationUnitId;
|
||
|
TenantId = tenantId;
|
||
3 years ago
|
}
|
||
3 years ago
|
|
||
3 years ago
|
}
|