feat: added environment for log entries

This commit is contained in:
2024-10-10 20:32:46 +02:00
parent 4f50f6bb7e
commit cefb48a4b2
5 changed files with 63 additions and 3 deletions

View File

@@ -23,6 +23,7 @@ class LogEntry(Base):
application = Column(
UUID(as_uuid=True), ForeignKey("application.id", ondelete="CASCADE"), nullable=False
)
environment = Column(String(64), nullable=True, default="prod")
# type of the log entry
l_type = Column(Enum(LogType), nullable=False, default=LogType.INFO)
# type of the transaction