Basic event management

This commit is contained in:
James Pattinson
2025-11-12 18:08:11 +00:00
parent e5fdd0ecb8
commit 107c208746
9 changed files with 791 additions and 79 deletions

View File

@@ -135,6 +135,7 @@ class Event(Base):
title = Column(String(255), nullable=False)
description = Column(Text, nullable=True)
event_date = Column(DateTime, nullable=False)
event_time = Column(String(10), nullable=True) # HH:MM format
location = Column(String(255), nullable=True)
max_attendees = Column(Integer, nullable=True)
status = Column(SQLEnum(EventStatus, values_callable=lambda x: [e.value for e in x]), default=EventStatus.DRAFT, nullable=False)