<?php

namespace App\Models;

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

class Branch extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'branch_type_name',
        'addressline1',
        'addressline2',
        'phone',
        'email',
        'opening_hour',
        'opening_day',
        'maps_link',
        'user_id'
    ];

    /**
     * Relationship with User
     */
    public function user()
    {
        return $this->belongsTo(User::class);
    }
}