enum case consistency, wip creating service

This commit is contained in:
2025-03-31 13:51:02 +00:00
parent 75f2ecb7bf
commit d150f57c8f
16 changed files with 150 additions and 113 deletions

View File

@@ -4,6 +4,6 @@ namespace App\Enums;
enum OrganisationRole: string
{
case Admin = 'admin';
case Member = 'member';
case ADMIN = 'admin';
case MEMBER = 'member';
}

View File

@@ -4,5 +4,5 @@ namespace App\Enums;
enum RepositoryType: string
{
case Git = 'git';
case GIT = 'git';
}

View File

@@ -4,6 +4,6 @@ namespace App\Enums;
enum ServerProvider: string
{
case Hetzner = 'hetzner';
case DigitalOcean = 'digital-ocean';
case HETZNER = 'hetzner';
case DIGITAL_OCEAN = 'digital-ocean';
}

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Enums;
enum ServiceCategory: string
{
case DATABASE = 'database';
case APPLICATION = 'application';
case GATEWAY = 'gateway';
case STORAGE = 'storage';
case CACHE = 'cache';
}

View File

@@ -4,6 +4,8 @@ namespace App\Enums;
enum ServiceStatus: string
{
case NOT_INSTALLED = 'not-installed';
case INSTALLING = 'installing';
case RUNNING = 'running';
case STOPPED = 'stopped';
case ERROR = 'error';

16
app/Enums/ServiceType.php Normal file
View File

@@ -0,0 +1,16 @@
<?php
namespace App\Enums;
enum ServiceType: string {
case FRANKENPHP = 'frankenphp';
case PHP_FPM = 'php-fpm';
case POSTGRES = 'postgres';
case CADDY = 'caddy';
case VALKEY = 'valkey';
// future?
case MYSQL = 'mysql';
case NGINX = 'nginx';
case REDIS = 'redis';
}