Fix test failures and workload/websocket behavior

This commit is contained in:
beabigegg
2026-01-11 08:37:21 +08:00
parent 3bdc6ff1c9
commit f5f870da56
49 changed files with 3006 additions and 1132 deletions

View File

@@ -5,7 +5,7 @@ that can be used to quickly set up new projects.
"""
import uuid
from sqlalchemy import Column, String, Text, Boolean, DateTime, ForeignKey, JSON
from sqlalchemy.orm import relationship
from sqlalchemy.orm import relationship, synonym
from sqlalchemy.sql import func
from app.core.database import Base
@@ -53,6 +53,10 @@ class ProjectTemplate(Base):
# Relationships
owner = relationship("User", foreign_keys=[owner_id])
# Backward-compatible aliases for older code/tests
created_by = synonym("owner_id")
default_statuses = synonym("task_statuses")
# Default template data for system templates
SYSTEM_TEMPLATES = [