增加充值审计日志

This commit is contained in:
yml2213
2026-08-14 11:52:30 +08:00
parent 7fefe7e9f9
commit 7fe6228901
16 changed files with 675 additions and 3 deletions
+2
View File
@@ -458,4 +458,6 @@ class AuditLog(Base):
action = Column(String(128), nullable=False)
target = Column(String(256), default="")
detail = Column(Text, default="")
# 旧记录未标记结果时为 NULL,避免把历史操作误判成失败。
success = Column(Boolean, nullable=True, index=True)
created_at = Column(DateTime, default=_utcnow)