<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class nn_company extends Model
{
    protected $table = 'nn_company';

    protected $fillable = [
        'code',
        'country_id',
        'min_budget',
        'min_hour',
        'creation_date',
        'number_of_staff',
        'cover',
        'logo',
        'user_id',
    ];

    public function categories()
    {
        return $this->hasMany(nn_company_category::class, 'company_id');
    }
}
