6c86f0f571
- integrated request-module into module registry - moved backend into modules/request-module - added manifest.json and module.py - implemented dynamic router mounting - implemented dynamic static mounting - removed direct dependencies from platform core - verified startup with request-module - verified startup without request-module - added implementation_report_003.md
18 lines
552 B
Python
18 lines
552 B
Python
"""Status model."""
|
|
|
|
from sqlalchemy import Column, String, Boolean, Integer
|
|
from request_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})>"
|