feat: establish reservation portal foundation

This commit is contained in:
2026-08-04 15:24:08 +01:00
commit c96264ae96
226 changed files with 32232 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Domain\Identity\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
class Role extends Model
{
protected $fillable = ['name', 'description'];
/** @return BelongsToMany<User, $this> */
public function users(): BelongsToMany
{
return $this->belongsToMany(User::class);
}
/** @return BelongsToMany<Permission, $this> */
public function permissions(): BelongsToMany
{
return $this->belongsToMany(Permission::class);
}
}