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
+17
View File
@@ -0,0 +1,17 @@
"""Status model."""
from sqlalchemy import Column, String, Boolean, Integer
from app.models.base import Base, TimestampMixin
class Status(Base, TimestampMixin):
"""Status model."""
__tablename__ = "statuses"
id = Column(Integer, primary_key=True, index=True)
name = Column(String(50), unique=True, nullable=False)
is_final = Column(Boolean, default=False) # Can a ticket be closed with this status?
def __repr__(self) -> str:
return f"<Status(id={self.id}, name='{self.name}', is_final={self.is_final})>"