<?php

namespace App\Models;

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

class PluginRelease extends Model
{
    use HasFactory;

    protected $fillable = [
        'version',
        'file_name',
        'file_path',
        'file_size',
        'zip_hash',
        'source_hash',
        'release_notes',
        'created_by_user_id',
    ];

    public function creator()
    {
        return $this->belongsTo(User::class, 'created_by_user_id');
    }
}
