feat(room): add POST /room API

This commit is contained in:
chenjintang-shrimp
2025-08-07 06:28:07 +00:00
parent 87bb74d1ca
commit 47d02e4e9c
4 changed files with 122 additions and 20 deletions

View File

@@ -29,7 +29,7 @@ class RoomBase(SQLModel):
name: str = Field(index=True)
category: RoomCategory = Field(default=RoomCategory.NORMAL, index=True)
duration: int | None = Field(default=None) # minutes
starts_at: datetime = Field(
starts_at: datetime | None = Field(
sa_column=Column(
DateTime(timezone=True),
),