<?php

namespace App\Models;

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

class TypeItems extends Model
{
    use HasFactory;

    protected $table = 'type_items';

    protected $fillable = [
        'name',
        'description',
        'image_url',
    ];

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