<?php

namespace App\Models;

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

class Media extends Model
{
    protected $fillable = ['post_id', 'type', 'url'];

    public function post()
    {
        return $this->belongsTo(BlogPost::class);
    }
}
