2026-01-19 00:09:36 +08:00
|
|
|
# Models package
|
|
|
|
|
from app.models.user import User
|
|
|
|
|
from app.models.workflow import Workflow
|
|
|
|
|
from app.models.workflow_version import WorkflowVersion
|
2026-05-06 21:44:45 +08:00
|
|
|
from app.models.agent import Agent, GlobalKnowledge, AgentRating, AgentFavorite
|
2026-01-19 00:09:36 +08:00
|
|
|
from app.models.execution import Execution
|
|
|
|
|
from app.models.execution_log import ExecutionLog
|
|
|
|
|
from app.models.model_config import ModelConfig
|
|
|
|
|
from app.models.data_source import DataSource
|
|
|
|
|
from app.models.workflow_template import WorkflowTemplate, TemplateRating, TemplateFavorite
|
|
|
|
|
from app.models.node_template import NodeTemplate
|
|
|
|
|
from app.models.permission import Role, Permission, WorkflowPermission, AgentPermission
|
|
|
|
|
from app.models.alert_rule import AlertRule, AlertLog
|
2026-04-08 11:44:24 +08:00
|
|
|
from app.models.persistent_user_memory import PersistentUserMemory
|
2026-05-01 19:32:59 +08:00
|
|
|
from app.models.agent_llm_log import AgentLLMLog
|
2026-05-01 22:30:46 +08:00
|
|
|
from app.models.agent_vector_memory import AgentVectorMemory
|
2026-05-02 12:04:00 +08:00
|
|
|
from app.models.agent_learning_pattern import AgentLearningPattern
|
2026-05-02 12:14:37 +08:00
|
|
|
from app.models.agent_schedule import AgentSchedule
|
2026-05-01 22:30:46 +08:00
|
|
|
from app.models.knowledge_base import KnowledgeBase, Document, DocumentChunk
|
2026-05-02 16:17:49 +08:00
|
|
|
from app.models.notification import Notification
|
2026-05-06 00:36:40 +08:00
|
|
|
from app.models.user_feishu_open_id import UserFeishuOpenId
|
2026-05-06 21:44:45 +08:00
|
|
|
from app.models.plugin import NodePlugin
|
|
|
|
|
from app.models.orchestration_template import OrchestrationTemplate
|
2026-05-08 19:50:16 +08:00
|
|
|
from app.models.goal import Goal
|
|
|
|
|
from app.models.task import Task
|
2026-05-10 19:50:20 +08:00
|
|
|
from app.models.agent_execution_log import AgentExecutionLog
|
|
|
|
|
from app.models.user_behavior import UserBehaviorLog
|
|
|
|
|
from app.models.knowledge_entry import KnowledgeEntry
|
|
|
|
|
from app.models.user_fingerprint import UserFingerprint
|
|
|
|
|
from app.models.shadow_comparison import ShadowComparison
|
|
|
|
|
from app.models.feedback_record import FeedbackRecord
|
2026-06-29 01:17:21 +08:00
|
|
|
from app.models.audit_log import AuditLog
|
|
|
|
|
from app.models.workspace import Workspace, WorkspaceMembership
|
|
|
|
|
from app.models.scene_contract import SceneContract
|
|
|
|
|
from app.models.team import Team, TeamMember
|
2026-06-30 00:07:26 +08:00
|
|
|
from app.models.chat_message import ChatMessage
|
feat: multi-tenant workspace isolation, RBAC, sidebar nav, billing, and Android enhancements
- Backend: workspace_id isolation for 14 model tables + safe migration/backfill
- Backend: RBAC system with 4 roles and 23 permissions, seeded on startup
- Backend: workspace admin endpoints (list/manage all workspaces)
- Backend: admin user management API (CRUD, reset password)
- Backend: billing API with subscription plans, usage tracking, rate limiting
- Backend: fix system_logs.py UNION query and wrong column references
- Backend: WebSocket JWT auth and workspace enforcement
- Frontend: sidebar navigation replacing top dropdown menu
- Frontend: user management page (Users.vue) for admins
- Frontend: enhanced Workspaces.vue with admin table view
- Frontend: workspace RBAC computed properties in user store
- Android: agent marketplace, billing/subscription UI, onboarding wizard
- Android: phone login, analytics tracker, crash handler, network diagnostics
- Android: splash screen, encrypted token storage, app update enhancements
- Docs: multi-tenant RBAC guide with 8 sections and role-permission matrix
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-04 01:00:22 +08:00
|
|
|
from app.models.agent_session import AgentSession
|
|
|
|
|
from app.models.billing import BillingPlan, BillingOrder, UserSubscription, UsageRecord
|
2026-01-19 00:09:36 +08:00
|
|
|
|
feat: multi-tenant workspace isolation, RBAC, sidebar nav, billing, and Android enhancements
- Backend: workspace_id isolation for 14 model tables + safe migration/backfill
- Backend: RBAC system with 4 roles and 23 permissions, seeded on startup
- Backend: workspace admin endpoints (list/manage all workspaces)
- Backend: admin user management API (CRUD, reset password)
- Backend: billing API with subscription plans, usage tracking, rate limiting
- Backend: fix system_logs.py UNION query and wrong column references
- Backend: WebSocket JWT auth and workspace enforcement
- Frontend: sidebar navigation replacing top dropdown menu
- Frontend: user management page (Users.vue) for admins
- Frontend: enhanced Workspaces.vue with admin table view
- Frontend: workspace RBAC computed properties in user store
- Android: agent marketplace, billing/subscription UI, onboarding wizard
- Android: phone login, analytics tracker, crash handler, network diagnostics
- Android: splash screen, encrypted token storage, app update enhancements
- Docs: multi-tenant RBAC guide with 8 sections and role-permission matrix
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-07-04 01:00:22 +08:00
|
|
|
__all__ = ["User", "Workflow", "WorkflowVersion", "Agent", "GlobalKnowledge", "AgentRating", "AgentFavorite", "Execution", "ExecutionLog", "ModelConfig", "DataSource", "WorkflowTemplate", "TemplateRating", "TemplateFavorite", "NodeTemplate", "Role", "Permission", "WorkflowPermission", "AgentPermission", "AlertRule", "AlertLog", "PersistentUserMemory", "AgentLLMLog", "AgentVectorMemory", "AgentLearningPattern", "AgentSchedule", "KnowledgeBase", "Document", "DocumentChunk", "Notification", "UserFeishuOpenId", "NodePlugin", "OrchestrationTemplate", "Goal", "Task", "AgentExecutionLog", "UserBehaviorLog", "KnowledgeEntry", "UserFingerprint", "ShadowComparison", "FeedbackRecord", "AuditLog", "Workspace", "WorkspaceMembership", "SceneContract", "Team", "TeamMember", "ChatMessage", "AgentSession", "BillingPlan", "BillingOrder", "UserSubscription", "UsageRecord"]
|