초기 커밋

This commit is contained in:
2026-03-01 07:44:19 +09:00
commit 09359f30be
146 changed files with 6120 additions and 0 deletions

31
app/core/constants.py Normal file
View File

@@ -0,0 +1,31 @@
from __future__ import annotations
class Role:
SUPERADMIN = "superadmin"
ADMIN = "admin"
MANAGER = "manager"
USER = "user"
DEVICE = "device"
ALL = [SUPERADMIN, ADMIN, MANAGER, USER, DEVICE]
ADMIN_ROLES = [SUPERADMIN, ADMIN]
MANAGEMENT_ROLES = [SUPERADMIN, ADMIN, MANAGER]
class DeviceStatus:
ONLINE = "online"
OFFLINE = "offline"
ERROR = "error"
MAINTENANCE = "maintenance"
class AlertSeverity:
CRITICAL = "critical"
WARNING = "warning"
INFO = "info"
class TokenType:
ACCESS = "access"
REFRESH = "refresh"