This commit is contained in:
@@ -20,6 +20,7 @@ from app.models.car import (
|
||||
AuditLog,
|
||||
Car,
|
||||
CarServiceLink,
|
||||
OCRResult,
|
||||
ServiceAppointment,
|
||||
ServiceCenter,
|
||||
ServiceCenterReview,
|
||||
@@ -251,7 +252,15 @@ DATA_SOURCES: dict[str, dict[str, Any]] = {
|
||||
"filters": {"user_id": "actor_user_id", "role": "actor_role"},
|
||||
"columns": ["id", "actor_user_id", "actor_role", "action", "target_type", "target_id", "ip", "created_at"],
|
||||
},
|
||||
"ocr_results": {"model": None, "roles": ADMIN_ROLES, "columns": []},
|
||||
"ocr_results": {
|
||||
"model": OCRResult,
|
||||
"roles": ADMIN_ROLES,
|
||||
"search": ["filename", "recognized_text", "error"],
|
||||
"filters": {"user_id": "user_id", "vehicle_id": "vehicle_id", "status": "status", "category": "scope"},
|
||||
"columns": ["id", "user_id", "vehicle_id", "scope", "filename", "status", "provider", "confidence", "created_at", "error"],
|
||||
"editable": ["status"],
|
||||
"delete": {"type": "hard"},
|
||||
},
|
||||
"imports_exports": {
|
||||
"model": AdminExportJob,
|
||||
"roles": DATA_EXPORT_ROLES,
|
||||
|
||||
Reference in New Issue
Block a user