<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Employee extends Model
{
    protected $fillable = ['name', 'email', 'handle', 'role', 'is_active', 'notes'];

    protected $casts = ['is_active' => 'boolean'];

    public function orders()
    {
        return $this->belongsToMany(Order::class, 'order_employee');
    }
}
