Basic tenant structure

This commit is contained in:
2026-01-31 20:07:41 +01:00
parent 825af15962
commit 3570f442f5
35 changed files with 634 additions and 144 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Enumerations;
use App\Scopes\CommonModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
/**
* @property string $slug
* @property string $name
*/
class CostUnitType extends CommonModel
{
public const COST_UNIT_TYPE_EVENT = 'event';
public const COST_UNIT_TYPE_RUNNING_JOB = 'running_job';
protected $fillable = [
'slug',
'name',
];
}

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Enumerations;
use App\Scopes\CommonModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
/**
* @property string $slug
* @property string $name
*/
class EatingHabit extends CommonModel
{
public const string EATING_HABIT_OMNIVOR = 'EATING_HABIT_OMNIVOR';
public const string EATING_HABIT_VEGETARIAN = 'EATING_HABIT_VEGETARIAN';
public const string EATING_HABIT_VEGAN = 'EATING_HABIT_VEGAN';
protected $fillable = [
'slug',
'name',
];
}

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Enumerations;
use App\Scopes\CommonModel;
/**
* @property string $slug
* @property string $name
*/
class FirstAidPermission extends CommonModel
{
public const string FIRST_AID_PERMISSION_ALLOWED = 'FIRST_AID_PERMISSION_ALLOWED';
public const string FIRST_AID_PERMISSION_DENIED = 'FIRST_AID_PERMISSION_DENIED';
protected $fillable = [
'slug',
'name',
'description'
];
}

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Enumerations;
use App\Scopes\CommonModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
/**
* @property string $slug
* @property string $name
*/
class SwimmingPermission extends CommonModel
{
public const string SWIMMING_PERMISSION_ALLOWED = 'SWIMMING_PERMISSION_ALLOWED';
public const string SWIMMING_PERMISSION_LIMITED = 'SWIMMING_PERMISSION_LIMITED';
public const string SWIMMING_PERMISSION_DENIED = 'SWIMMING_PERMISSION_DENIED';
use HasFactory;
protected $fillable = [
'slug',
'name',
];
}

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Enumerations;
use App\Scopes\CommonModel;
class UserRole extends CommonModel {
public const USER_ROLE_ADMIN = 'ROLE_ADMINISTRATOR';
public const USER_ROLE_GROUP_LEADER = 'ROLE_GROUP_LEADER';
public const USER_ROLE_USER = 'ROLE_USER';
protected $fillable = [
'name',
'slug'
];
}