<?php

namespace App\Models;

use App\Traits\HasLocalizedAttributes;
use Illuminate\Database\Eloquent\Model;

class SchoolGallery extends Model
{
    use HasLocalizedAttributes;

    protected $fillable = [
        'school_id',
        'type',   // e.g., image, video, pdf
        'file',   // file path or URL
        'title_en',
        'title_ar',
    ];

    /**
     * 🔗 Relationships
     */
    public function school()
    {
        return $this->belongsTo(School::class);
    }
}
