user administration

This commit is contained in:
roman
2026-06-11 19:33:03 +02:00
parent 639baafe4a
commit 31800eceda
12 changed files with 1031 additions and 9 deletions
@@ -0,0 +1,8 @@
namespace CalendarReminder.Domain.Entities;
public class Family
{
public int Id { get; set; }
public string Name { get; set; } = "";
public ICollection<User> Users { get; set; } = [];
}
+5
View File
@@ -7,6 +7,11 @@ public class User
public string Email { get; set; } = "";
public string PasswordHash { get; set; } = "";
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public bool IsAdmin { get; set; }
public bool MustChangePassword { get; set; }
public int? FamilyId { get; set; }
public Family? Family { get; set; }
public ICollection<Reminder> Reminders { get; set; } = [];
}