Initial monorepo structure

This commit is contained in:
Арсентьев Александр
2026-08-06 11:23:37 +03:00
commit 07dbde2a0e
240 changed files with 212717 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
"""Priority model."""
from sqlalchemy import Column, String, Integer
from app.models.base import Base, TimestampMixin
class Priority(Base, TimestampMixin):
"""Priority model."""
__tablename__ = "priorities"
id = Column(Integer, primary_key=True, index=True)
name = Column(String(50), unique=True, nullable=False)
level = Column(Integer, nullable=False) # 1=Low, 2=Medium, 3=High, 4=Critical
default_response_time_minutes = Column(Integer, default=60)
def __repr__(self) -> str:
return f"<Priority(id={self.id}, name='{self.name}', level={self.level})>"