feat: enhance agent orchestration, knowledge flow and UI refinements

This commit is contained in:
2026-03-29 20:31:13 +08:00
parent d85cb9cf35
commit e0fe3ca623
301 changed files with 1197804 additions and 7863 deletions

View File

@@ -0,0 +1,21 @@
from enum import Enum as PyEnum
from sqlalchemy import Column, Enum, ForeignKey, String, Text
from app.models.base import BaseModel
class GoalStatus(str, PyEnum):
ACTIVE = "active"
DONE = "done"
ARCHIVED = "archived"
class Goal(BaseModel):
__tablename__ = "goals"
user_id = Column(String(36), ForeignKey("users.id"), nullable=False, index=True)
title = Column(String(255), nullable=False)
note = Column(Text, nullable=True)
goal_date = Column(String(10), nullable=False, index=True)
status = Column(Enum(GoalStatus), default=GoalStatus.ACTIVE, nullable=False)