<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Files extends Model
{
    protected $table = 'files';

    protected $fillable = ['uuid', 'module_id', 'original_name', 'encrypted_name', 'stored_path', 'passcode', 'total_downloads', 'file_status', 'total_downloads', 'status', 'scan_engine', 'scan_result', 'scanned_at', 'size_bytes', 'mime_type',];

    public function module()
    {
        return $this->belongsTo(Modules::class, 'module_id');
    }
}
