Spaces:
Runtime error
Runtime error
File size: 435 Bytes
680fa2b | 1 2 3 4 5 6 7 8 9 10 11 | from sqlalchemy import Column, String
from backend.app.models.base import BaseDBModel
class AdminAlert(BaseDBModel):
__tablename__ = "admin_alerts"
type = Column(String, nullable=False, index=True) # Dispute, Fraud, IVR
text = Column(String, nullable=False)
severity = Column(String, nullable=False) # red, orange, gray
status = Column(String, nullable=False, default="active", index=True) # active, resolved
|