Initial commit
This commit is contained in:
17
backend/app/schemas/audit.py
Normal file
17
backend/app/schemas/audit.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from datetime import datetime
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class AuditLogRead(BaseModel):
|
||||
id: int
|
||||
actor_id: int
|
||||
actor_source: str
|
||||
target_type: str
|
||||
target_id: str
|
||||
action: str
|
||||
result: str
|
||||
details: dict
|
||||
created_at: datetime
|
||||
|
||||
model_config = {"from_attributes": True}
|
||||
Reference in New Issue
Block a user