feat(audit): enhanced audit trail with IP, user-agent and integrity hash [FASE-3.1]
This commit is contained in:
@@ -22,6 +22,10 @@ class AuditLog(Base):
|
||||
entity_id = Column(String, nullable=True)
|
||||
timestamp = Column(DateTime(timezone=True), server_default=func.now())
|
||||
details = Column(JSONB, nullable=True)
|
||||
ip_address = Column(String(45), nullable=True)
|
||||
user_agent = Column(String(500), nullable=True)
|
||||
integrity_hash = Column(String(64), nullable=True)
|
||||
session_id = Column(String(100), nullable=True)
|
||||
|
||||
# Relationships
|
||||
user = relationship("User")
|
||||
|
||||
Reference in New Issue
Block a user