<?php

namespace App\Models;

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

class Service extends Model
{
    use HasFactory;

    protected $fillable = [
        'code',
        'name',
        'description',
        'reason',
    ];
    
    public function corporateService()
    {
        return $this->hasMany(CorporateService::class, 'service_code', 'code');
    }
}
