Allow event to hold multiple categories

This commit is contained in:
Peter Vacho 2024-11-29 17:21:21 +01:00
parent 7bfe4268e7
commit e93bf5524b
Signed by: school
GPG key ID: 8CFC3837052871B4

View file

@ -15,7 +15,7 @@ class Event(Document):
user: Annotated[User, Annotated[Link[User], Indexed()]]
title: str
description: str
category: Annotated[Category, Annotated[Link[Category], Indexed()]]
categories: Annotated[list[Category], Annotated[list[Link[Category]], Indexed()]]
start_date: Annotated[date, Indexed()]
start_time: time
end_date: Annotated[date, Indexed()]