c09710f4e5
Departments are now a customizable per-project list (standard + custom), matching the existing custom task type/status pattern, instead of a fixed 7-value enum. They're usable directly on tasks (new field, independent of assignee) and continue to drive team member department roles.
42 lines
1.5 KiB
Python
42 lines
1.5 KiB
Python
# Models package
|
|
from .user import User, UserRole
|
|
from .project import Project, ProjectMember, ProjectStatus
|
|
from .episode import Episode, EpisodeStatus
|
|
from .asset import Asset, AssetCategory, AssetStatus
|
|
from .shot import Shot, ShotStatus
|
|
from .task import (
|
|
Task, Submission, Review, ProductionNote, TaskAttachment,
|
|
TaskType, TaskStatus, ReviewDecision, AttachmentType, NoteType
|
|
)
|
|
from .api_key import APIKey, APIKeyScope
|
|
from .api_key_usage import APIKeyUsage
|
|
from .global_settings import GlobalSettings
|
|
from .notification import Notification, UserNotificationPreference, NotificationType
|
|
from .activity import Activity, ActivityType
|
|
from .role import Role, Permission, role_permissions, user_roles
|
|
|
|
__all__ = [
|
|
# User models
|
|
"User", "UserRole",
|
|
# Project models
|
|
"Project", "ProjectMember", "ProjectStatus",
|
|
# Episode models
|
|
"Episode", "EpisodeStatus",
|
|
# Asset models
|
|
"Asset", "AssetCategory", "AssetStatus",
|
|
# Shot models
|
|
"Shot", "ShotStatus",
|
|
# Task models
|
|
"Task", "Submission", "Review", "ProductionNote", "TaskAttachment",
|
|
"TaskType", "TaskStatus", "ReviewDecision", "AttachmentType", "NoteType",
|
|
# API Key models
|
|
"APIKey", "APIKeyScope", "APIKeyUsage",
|
|
# Global Settings models
|
|
"GlobalSettings",
|
|
# Notification models
|
|
"Notification", "UserNotificationPreference", "NotificationType",
|
|
# Activity models
|
|
"Activity", "ActivityType",
|
|
# Role models
|
|
"Role", "Permission", "role_permissions", "user_roles"
|
|
] |