Basic event management
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user