feat: Add dedicated buyer dashboard, buyer role assignment, Bavarian White-Blue light/dark mode and mobile drawer

This commit is contained in:
2026-09-22 08:21:06 +02:00
parent 1ff5b3a31e
commit 0bdcbe7976
6 changed files with 825 additions and 67 deletions
+2
View File
@@ -82,9 +82,11 @@ class Event(Base):
allow_guests = Column(Boolean, default=True, nullable=False)
sponsor_name = Column(String(150), nullable=True)
guest_token = Column(String(64), nullable=True)
buyer_id = Column(Integer, ForeignKey("users.id", ondelete="SET NULL"), nullable=True)
created_at = Column(DateTime, default=func.now())
tenant = relationship("Tenant", back_populates="events")
buyer = relationship("User", foreign_keys=[buyer_id])
orders = relationship("Order", back_populates="event", cascade="all, delete-orphan")