Add project files.

This commit is contained in:
roman
2026-06-05 21:39:38 +02:00
parent 63bb199a1f
commit 841037013a
28 changed files with 2342 additions and 0 deletions
@@ -0,0 +1,17 @@
namespace CalendarReminder.Domain.Entities;
public class Reminder
{
public int Id { get; set; }
public string Title { get; set; } = "";
public string? Description { get; set; }
public DateTime ReminderDate { get; set; }
public bool IsCompleted { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public bool NotificationSent { get; set; }
// FK
public int UserId { get; set; }
public User? User { get; set; }
public ICollection<ReminderShare> Shares { get; set; } = [];
}
@@ -0,0 +1,10 @@
namespace CalendarReminder.Domain.Entities;
public class ReminderShare
{
public int Id { get; set; }
public int ReminderId { get; set; }
public Reminder? Reminder { get; set; }
public int SharedWithUserId { get; set; }
public User? SharedWithUser { get; set; }
}
+12
View File
@@ -0,0 +1,12 @@
namespace CalendarReminder.Domain.Entities;
public class User
{
public int Id { get; set; }
public string Username { get; set; } = "";
public string Email { get; set; } = "";
public string PasswordHash { get; set; } = "";
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
public ICollection<Reminder> Reminders { get; set; } = [];
}