<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Video;

class Sector extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'slug',
        'is_active',
    ];

    public function videos()
    {
        return $this->belongsToMany(Video::class, 'video_sector');
    }

    public function users()
    {
        return $this->hasMany(User::class);
    }

}
