Create models and Clean Arch boilerplate
This commit is contained in:
parent
3926db5446
commit
872dc1e263
21 changed files with 576 additions and 27 deletions
10
CSR.Infrastructure/Persistence/Role.cs
Normal file
10
CSR.Infrastructure/Persistence/Role.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
namespace CSR.Infrastructure.Persistence;
|
||||
|
||||
public class Role
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Name { get; set; }
|
||||
|
||||
// Navigation property
|
||||
public ICollection<User> Users { get; set; } = new HashSet<User>();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue