[ADD] Join tables. Added attributes to role.
This commit is contained in:
@@ -1,24 +1,18 @@
|
||||
namespace DotBased.AspNet.Authority.Models.Authority;
|
||||
|
||||
public class AuthorityGroup
|
||||
public class AuthorityGroup()
|
||||
{
|
||||
public AuthorityGroup(string name) : this()
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public AuthorityGroup()
|
||||
{
|
||||
Id = Guid.NewGuid();
|
||||
CreatedDate = DateTime.Now;
|
||||
}
|
||||
|
||||
public Guid Id { get; set; }
|
||||
|
||||
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
|
||||
public string? Name { get; set; }
|
||||
|
||||
public long Version { get; set; }
|
||||
|
||||
public DateTime CreatedDate { get; set; }
|
||||
public DateTime CreatedDate { get; set; } = DateTime.Now;
|
||||
public ICollection<AuthorityAttribute> Attributes { get; set; } = [];
|
||||
}
|
@@ -15,5 +15,7 @@ public class AuthorityRole()
|
||||
|
||||
public DateTime CreatedDate { get; set; } = DateTime.Now;
|
||||
|
||||
public IEnumerable<AuthorityAttribute> Attributes { get; set; } = [];
|
||||
|
||||
public override string ToString() => Name ?? string.Empty;
|
||||
}
|
Reference in New Issue
Block a user