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:
@@ -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") ||
|
||||
|
||||
Reference in New Issue
Block a user