Add project files.
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user