<?php

namespace App\Models;

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

class RoomType extends Model
{
    use HasFactory;

    public $timestamps = false;

    protected $primaryKey = 'room_type_id';

    protected $fillable = [
        'room_type',
        'price',
    ];

    /**
     * Get the rooms for this room type.
     */
    public function rooms()
    {
        return $this->hasMany(Room::class, 'room_type_id');
    }
}
