diff --git a/app/Enums/HuntDifficulty.php b/app/Enums/HuntDifficulty.php new file mode 100644 index 0000000..f306ad1 --- /dev/null +++ b/app/Enums/HuntDifficulty.php @@ -0,0 +1,15 @@ + 'float', 'longitude' => 'float', 'estimated_duration_min' => 'integer', + 'status' => HuntStatus::class, + 'difficulty' => HuntDifficulty::class, ]; } diff --git a/compose.yaml b/compose.yaml index ebed62b..df63b31 100644 --- a/compose.yaml +++ b/compose.yaml @@ -55,8 +55,6 @@ services: environment: PMA_HOST: mysql PMA_PORT: 3306 - PMA_USER: "${DB_USERNAME}" - PMA_PASSWORD: "${DB_PASSWORD}" networks: - sail depends_on: diff --git a/database/migrations/2025_12_19_103518_add_id_to_hunts.php b/database/migrations/2025_12_19_103518_add_id_to_hunts.php new file mode 100644 index 0000000..b68766e --- /dev/null +++ b/database/migrations/2025_12_19_103518_add_id_to_hunts.php @@ -0,0 +1,31 @@ +id(); + $table->unsignedBigInteger('xp')->default(0); + $table->string('status')->default('draft'); + + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('hunts', function (Blueprint $table) { + // + }); + } +}; diff --git a/database/migrations/2025_12_19_103600_add_role_to_users.php b/database/migrations/2025_12_19_103600_add_role_to_users.php new file mode 100644 index 0000000..299ddf7 --- /dev/null +++ b/database/migrations/2025_12_19_103600_add_role_to_users.php @@ -0,0 +1,28 @@ +string('role')->default('user'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + // + }); + } +};