<?php

namespace App\Models;

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

class Service extends Model
{
    use HasFactory;

    protected $table = 'tbl_service';
    protected $guarded = array();

    protected $casts = [
        'id' => 'integer',
        'department_id' => 'integer',
        'name' => 'string',
        'description' => 'string',
        'image' => 'string',
        'sort_order' => 'integer',
        'status' => 'integer',
    ];
    public function department()
    {
        return $this->belongsTo(Department::class, 'department_id');
    }
}
