from django.contrib import admin
from .models import FileScan

@admin.register(FileScan)
class FileScanAdmin(admin.ModelAdmin):
    list_display = ('filename', 'risk_level', 'file_hash', 'created_at')
    list_filter = ('risk_level', 'created_at')
    search_fields = ('filename', 'file_hash')
    readonly_fields = ('file_hash', 'created_at')