<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class PluginFileChange extends Model
{
    use HasFactory;

    protected $fillable = [
        'plugin_source_snapshot_id',
        'path',
        'change_type',
        'previous_hash',
        'current_hash',
    ];

    public function snapshot()
    {
        return $this->belongsTo(PluginSourceSnapshot::class, 'plugin_source_snapshot_id');
    }
}
