refactor: update Flight model casts and relations

This commit is contained in:
2026-08-16 16:57:00 +03:30
parent 607b1be433
commit d96a1de68f
3 changed files with 79 additions and 39 deletions
+13
View File
@@ -0,0 +1,13 @@
<?php
namespace App\Enums;
enum FlightStatus:int
{
case AVAILABLE = 0;
case FULL = 1;
case CANCELLED = 2;
case DRAFT = 3;
case DELAYED = 4;
}
+9
View File
@@ -0,0 +1,9 @@
<?php
namespace App\Enums;
enum FlightTripType: int
{
case ONEWAY = 0;
case ROUNDTRIP = 1;
}