<?php

namespace Sartoric\ModularCms\Models;

class Permission extends McmsModel
{
    protected $table = 'sys_permissions';
    public $timestamps = false;

    // protected $touches = ['users']; // messa solo solo come reminder
    // aggiorna il timestamp dell'utente quando vengono modificati i ruoli

    public function roles()
    {
        return $this->belongsToMany(Role::class, 'sys_role_permission');
    }

    /**
     * Get the relationships for the entity.
     *
     * @return array
     */
    public function getQueueableRelations()
    {
        // TODO: Implement getQueueableRelations() method.
    }
}

