Add EventOccurrence entity and update DbContext

Created the EventOccurrence entity with properties for event details and added it to the AppDbContext. Updated the model snapshot to reflect the new entity and its relationships, ensuring proper database schema generation.
This commit is contained in:
2025-12-27 15:59:48 -05:00
parent eaefdfaedd
commit 3a809f18a6
6 changed files with 522 additions and 3 deletions
+11 -3
View File
@@ -1,14 +1,22 @@
namespace Core.Entities
namespace Core.Entities
{
public class EventOccurrence
{
public int Id { get; set; }
public int? EventDefinitionId { get; set; }
public string? SpecialEventType { get; set; }
public string Name { get; set; } = null!;
public string Time { get; set; } = null!;
public string Date { get; set; } = null!;
public DateTime StartTime { get; set; }
public DateTime? EndTime { get; set; }
public string Location { get; set; } = null!;
public string? Location { get; set; }
// Navigation property
public EventDefinition? EventDefinition { get; set; }
public bool SignupSubmitPickup =>
Name.Contains("Sign-up") ||