refaktorálás javításai
This commit is contained in:
@@ -21,7 +21,7 @@ class LogSeverity(str, enum.Enum):
|
||||
class AuditLog(Base):
|
||||
""" Rendszerszintű műveletnapló. """
|
||||
__tablename__ = "audit_logs"
|
||||
__table_args__ = {"schema": "data"}
|
||||
__table_args__ = {"schema": "audit"}
|
||||
|
||||
id: Mapped[int] = mapped_column(Integer, primary_key=True, index=True)
|
||||
|
||||
@@ -29,7 +29,7 @@ class AuditLog(Base):
|
||||
user_id: Mapped[Optional[int]] = mapped_column(Integer, ForeignKey("identity.users.id"))
|
||||
|
||||
severity: Mapped[LogSeverity] = mapped_column(
|
||||
PG_ENUM(LogSeverity, name="log_severity", schema="data"),
|
||||
PG_ENUM(LogSeverity, name="log_severity", schema="audit"),
|
||||
default=LogSeverity.info
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user