feat: virtual company module, team projects, PWA dishes app, and startup scripts overhaul
- Add company module (3-tier org, CEO planning, parallel departments) - Add company orchestrator, knowledge extractor, presets, scheduler - Add company API endpoints, models, and frontend views - Add 今天吃啥 PWA app (69 dishes, real images, offline support) - Add team_projects output directory structure - Add unified manage.ps1 for service lifecycle - Add Windows startup guide v1.0 - Add TTS troubleshooting doc - Update frontend (AgentChat UX overhaul, new views) - Update backend (voice engine fix, multi-tenant, RBAC) - Remove deprecated startup scripts and old docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -79,6 +79,8 @@ def init_db():
|
||||
import app.models.chat_message
|
||||
import app.models.agent_session
|
||||
import app.models.billing
|
||||
import app.models.company_schedule
|
||||
import app.models.company_knowledge
|
||||
Base.metadata.create_all(bind=engine)
|
||||
|
||||
# v1.1.0: 手机验证字段迁移(safe ALTER)
|
||||
@@ -131,6 +133,9 @@ def _run_safe_migrations():
|
||||
"ALTER TABLE template_ratings ADD INDEX idx_trating_workspace (workspace_id)",
|
||||
"ALTER TABLE template_favorites ADD COLUMN workspace_id CHAR(36) NULL",
|
||||
"ALTER TABLE template_favorites ADD INDEX idx_tfav_workspace (workspace_id)",
|
||||
# v1.5: 虚拟公司进阶字段
|
||||
"ALTER TABLE company_projects ADD COLUMN review_scores JSON NULL",
|
||||
"ALTER TABLE company_projects ADD COLUMN round_count VARCHAR(10) DEFAULT '1'",
|
||||
]
|
||||
for raw_sql in migrations:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user