<?php

namespace App\Models;

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

class Bundles extends Model
{
    use HasFactory;

    protected $table = 'bundles';

    protected $fillable = [
        'name',
        'description',
        'price',
        'is_active',
    ];

    public function items()
    {
        return $this->hasMany(Items::class, 'bundle_id');
    }
}
