feat: add is_chat field to board memory and task_id to approvals, update pagination and response models
This commit is contained in:
@@ -14,6 +14,7 @@ class Approval(SQLModel, table=True):
|
||||
|
||||
id: UUID = Field(default_factory=uuid4, primary_key=True)
|
||||
board_id: UUID = Field(foreign_key="boards.id", index=True)
|
||||
task_id: UUID | None = Field(default=None, foreign_key="tasks.id", index=True)
|
||||
agent_id: UUID | None = Field(default=None, foreign_key="agents.id", index=True)
|
||||
action_type: str
|
||||
payload: dict[str, object] | None = Field(default=None, sa_column=Column(JSON))
|
||||
|
||||
@@ -16,5 +16,6 @@ class BoardMemory(SQLModel, table=True):
|
||||
board_id: UUID = Field(foreign_key="boards.id", index=True)
|
||||
content: str
|
||||
tags: list[str] | None = Field(default=None, sa_column=Column(JSON))
|
||||
is_chat: bool = Field(default=False, index=True)
|
||||
source: str | None = None
|
||||
created_at: datetime = Field(default_factory=utcnow)
|
||||
|
||||
Reference in New Issue
Block a user