<?php

namespace App\Models\Hotel;

use Illuminate\Database\Eloquent\Model;

class RoomGroup extends Model
{
  //* Associated Table & Primary Key
    protected $table = 'room_groups';
    protected $primaryKey = 'id';

  //* Fillable Fields
    protected $fillable = [
        'name',
        'color',
    ];

  //* Relationships
    public function rooms() {
        return $this->hasMany(Room::class);
    }

}
