Remove todo for improved color storing
This commit is contained in:
parent
8e82d7b661
commit
e66029ed36
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in a new issue