from django.contrib import admin

from .models import UploadedDocument


@admin.register(UploadedDocument)
class UploadedDocumentAdmin(admin.ModelAdmin):
    """管理上传文档及其入库状态，便于后台排查问题。"""
    list_display = ("id", "original_name", "scenario_id", "file_type", "status", "created_at")
    list_filter = ("status", "scenario_id", "file_type")
    search_fields = ("original_name", "scenario_id")
