<?php

namespace App\Models;

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

class PaketFoto extends Model
{
    use HasFactory;

    protected $table = 'paket_fotos';
    protected $primaryKey = 'id_paket';

    protected $fillable = [
        'nama',
        'deskripsi',
        'harga',
        'foto',
        'durasi',
    ];

    public function booking()
    {
        return $this->hasMany(BookingFoto::class, 'id_paket');
    }
}
