Allow event to hold multiple categories
This commit is contained in:
parent
7bfe4268e7
commit
e93bf5524b
|
@ -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()]
|
||||
|
|
Loading…
Reference in a new issue