Remove todo for improved color storing

This commit is contained in:
Peter Vacho 2024-12-25 20:48:13 +01:00
parent 8e82d7b661
commit e66029ed36
Signed by: school
GPG key ID: 8CFC3837052871B4
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ class Category(Document):
user: Annotated[User | Link[User], Annotated[Link[User], Indexed()]]
name: str # TODO: Should this be unique?
color: str # TODO: Consider using a complex rgb type
color: str # Stored as a hex string (# + 6 characters)
created_at: datetime = Field(default_factory=lambda: datetime.now(UTC))
@final

View file

@ -21,7 +21,7 @@ class Event(Document):
start_time: time
end_date: Annotated[date, Indexed()]
end_time: time
color: str # TODO: Consider using a complex rgb type
color: str # Stored as a hex string (# + 6 characters)
attendees: Annotated[Sequence[User | Link[User]], Annotated[list[Link[User]], Indexed()]]
created_at: datetime = Field(default_factory=lambda: datetime.now(UTC))