Working on organization unit table
This commit is contained in:
@ -78,17 +78,11 @@ namespace UserService.DatabaseLayer.DataModels
|
||||
[Column, Nullable] public int? ParentId { get; set; } // int(11)
|
||||
[Column, Nullable] public int? ManagerId { get; set; } // int(11)
|
||||
[Column, Nullable] public string? EMail { get; set; } // text
|
||||
[Column, NotNull ] public bool IsActive { get; set; } // bit(1)
|
||||
[Column, NotNull ] public string Discriminator { get; set; } = null!; // text
|
||||
[Column, Nullable] public bool? IsActive { get; set; } // bit(1)
|
||||
[Column, NotNull ] public string Discriminator { get; set; } = null!; // varchar(16)
|
||||
|
||||
#region Associations
|
||||
|
||||
/// <summary>
|
||||
/// NodeModels_ibfk_2_BackReference
|
||||
/// </summary>
|
||||
[Association(ThisKey="Id", OtherKey="ManagerId", CanBeNull=true, Relationship=Relationship.OneToMany, IsBackReference=true)]
|
||||
public IEnumerable<NodeModel> Ibfks { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// IsMemberOf_ibfk_2_BackReference
|
||||
/// </summary>
|
||||
@ -101,24 +95,6 @@ namespace UserService.DatabaseLayer.DataModels
|
||||
[Association(ThisKey="Id", OtherKey="NodeId", CanBeNull=true, Relationship=Relationship.OneToMany, IsBackReference=true)]
|
||||
public IEnumerable<IsMemberOf> IsMemberOfibfks { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// NodeModels_ibfk_2
|
||||
/// </summary>
|
||||
[Association(ThisKey="ManagerId", OtherKey="Id", CanBeNull=true, Relationship=Relationship.ManyToOne, KeyName="NodeModels_ibfk_2", BackReferenceName="Ibfks")]
|
||||
public NodeModel? Manager { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// NodeModels_ibfk_3_BackReference
|
||||
/// </summary>
|
||||
[Association(ThisKey="Id", OtherKey="ParentId", CanBeNull=true, Relationship=Relationship.OneToMany, IsBackReference=true)]
|
||||
public IEnumerable<NodeModel> NodeModelsIbfk3BackReferences { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// NodeModels_ibfk_3
|
||||
/// </summary>
|
||||
[Association(ThisKey="ParentId", OtherKey="Id", CanBeNull=true, Relationship=Relationship.ManyToOne, KeyName="NodeModels_ibfk_3", BackReferenceName="NodeModelsIbfk3BackReferences")]
|
||||
public NodeModel? Parent { get; set; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user