[ADD] Join tables. Added attributes to role.

This commit is contained in:
max
2025-02-10 02:11:35 +01:00
parent 2938e1311f
commit 65d625a30d
6 changed files with 52 additions and 11 deletions

View File

@@ -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; } = [];
}