Add teams + team ownership (schema + API)

This commit is contained in:
Jarvis
2026-02-02 12:51:25 +00:00
parent dc8750353d
commit e283543ef1
7 changed files with 178 additions and 3 deletions

View File

@@ -10,6 +10,9 @@ class Project(SQLModel, table=True):
name: str = Field(index=True, unique=True)
status: str = Field(default="active")
# Project ownership: projects are assigned to teams (not departments)
team_id: int | None = Field(default=None, foreign_key="teams.id")
class ProjectMember(SQLModel, table=True):
__tablename__ = "project_members"