Added achievement data

This commit is contained in:
2026-04-28 22:16:21 +10:00
parent 14aed7bf6e
commit b94b1d8ec2
43 changed files with 1559 additions and 130 deletions
@@ -47,14 +47,14 @@ return new class extends Migration
[
'internal_name' => 'expensive',
'name' => 'Expensive',
'description' => 'It might be hard, but it will be easier if you have a lot of money!',
'description' => 'Not necessarily difficult, but it might cost you a bit.',
'created_at' => now(),
'updated_at' => now(),
],
[
'internal_name' => 'near_impossible',
'name' => 'Near-Impossible',
'description' => 'You will actively have to try to get this achievement and they may be very few ways to go about it.',
'description' => 'You will actively have to try to get this achievement and ther may be very few ways to go about it.',
'created_at' => now(),
'updated_at' => now(),
],
@@ -337,6 +337,66 @@ return new class extends Migration
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $easy,
],
[
'internal_name' => 'general_flying.10_flights',
'name' => 'Frequent Flyer in Training',
'short_description' => 'Log 10 flights.',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 10,
'difficulty_description' => null,
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $easy,
],
[
'internal_name' => 'general_flying.50_flights',
'name' => 'Certified Frequent Flyer',
'short_description' => 'Log 50 flights.',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 50,
'difficulty_description' => null,
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $moderate,
],
[
'internal_name' => 'general_flying.100_flights',
'name' => 'Century in the Sky',
'short_description' => 'Log 100 flights.',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 100,
'difficulty_description' => null,
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $moderate,
],
[
'internal_name' => 'general_flying.500_flights',
'name' => 'The 500 Club',
'short_description' => 'Log 500 flights.',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 500,
'difficulty_description' => null,
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $hard,
],
[
'internal_name' => 'general_flying.1000_flights',
'name' => 'Skybound for Life',
'short_description' => 'Log 1,000 flights.',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 1000,
'difficulty_description' => null,
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $nearImposs,
],
[
'internal_name' => 'general_flying.domestic_flight',
'name' => 'Home Turf',
@@ -436,7 +496,7 @@ return new class extends Migration
[
'internal_name' => 'general_flying.domestic_two_countries',
'name' => 'Local Explorer',
'short_description' => 'Take domestic flights in two different countries.',
'short_description' => 'Take a domestic flight in two different countries.',
'long_description' => '',
'icon' => $icon,
'progressive' => false,
@@ -445,54 +505,6 @@ return new class extends Migration
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $moderate,
],
[
'internal_name' => 'general_flying.10_flights',
'name' => 'Frequent Flyer in Training',
'short_description' => 'Log 10 flights.',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 10,
'difficulty_description' => null,
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $easy,
],
[
'internal_name' => 'general_flying.100_flights',
'name' => 'Century in the Sky',
'short_description' => 'Log 100 flights.',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 100,
'difficulty_description' => null,
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $moderate,
],
[
'internal_name' => 'general_flying.500_flights',
'name' => 'The 500 Club',
'short_description' => 'Log 500 flights.',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 500,
'difficulty_description' => null,
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $hard,
],
[
'internal_name' => 'general_flying.1000_flights',
'name' => 'Skybound for Life',
'short_description' => 'Log 1,000 flights.',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 1000,
'difficulty_description' => null,
'achievement_category_id' => $generalFlying,
'achievement_difficulty_id'=> $expensive,
],
// -----------------------------------------------------------
// Countries & Continents
@@ -745,6 +757,42 @@ return new class extends Migration
// -----------------------------------------------------------
// Airlines & Alliances
// -----------------------------------------------------------
[
'internal_name' => 'airlines_alliances.us3',
'name' => 'Stars, Stripes & Status',
'short_description' => 'Fly the big 3 US Airlines (Delta, American and United)',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 3,
'difficulty_description' => null,
'achievement_category_id' => $airlinesAndAlliances,
'achievement_difficulty_id'=> $moderate,
],
[
'internal_name' => 'airlines_alliances.me3',
'name' => 'Gulf Goals',
'short_description' => 'Fly with the Middle East 3 (Etihad, Emirates and Qatar Airways)',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 3,
'difficulty_description' => null,
'achievement_category_id' => $airlinesAndAlliances,
'achievement_difficulty_id'=> $hard,
],
[
'internal_name' => 'airlines_alliances.cn3',
'name' => 'Three Kingdoms of the Sky',
'short_description' => 'Fly with the Chinese Big 3 Airlines (China Eastern, China Southern and Air China)',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 3,
'difficulty_description' => null,
'achievement_category_id' => $airlinesAndAlliances,
'achievement_difficulty_id'=> $moderate,
],
[
'internal_name' => 'airlines_alliances.all_skyteam',
'name' => 'Team Player',
@@ -821,6 +869,66 @@ return new class extends Migration
'achievement_category_id' => $funChallenges,
'achievement_difficulty_id' => $nearImposs,
],
[
'internal_name' => 'fun_challenges.brazilian_states',
'name' => 'The 27 Club',
'short_description' => 'Visit all Brazilian States. Plus the Distrito Federal!',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 27,
'difficulty_description' => '',
'achievement_category_id' => $funChallenges,
'achievement_difficulty_id' => $hard,
],
[
'internal_name' => 'fun_challenges.us_states',
'name' => 'The Big Five-O',
'short_description' => 'Fly to all 50 US States plus the District of Colombia',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 51,
'difficulty_description' => 'Hard at the best of times. Harder when nobody is flying to Delaware',
'achievement_category_id' => $funChallenges,
'achievement_difficulty_id' => $hard,
],
[
'internal_name' => 'fun_challenges.australian_states',
'name' => 'Yeah Nah, Been There',
'short_description' => 'Fly to all Australian States and Territories',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 8,
'difficulty_description' => 'Only counting internal territories - the NT and ACT.',
'achievement_category_id' => $funChallenges,
'achievement_difficulty_id' => $hard,
],
[
'internal_name' => 'fun_challenges.canadian_provinces',
'name' => 'All done, eh?',
'short_description' => 'Fly to all 10 provinces and 3 territories of Canada',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 13,
'difficulty_description' => 'Hard at the best of times. Harder when nobody is flying to Delaware',
'achievement_category_id' => $funChallenges,
'achievement_difficulty_id' => $hard,
],
[
'internal_name' => 'fun_challenges.chinese_provinces',
'name' => 'Province of Mind',
'short_description' => 'Fly to all Chinese Provinces and Autonomous Zones',
'long_description' => '',
'icon' => $icon,
'progressive' => true,
'threshold' => 31,
'difficulty_description' => 'Cities like Tianjin, Shanghai and Beijing are their own zones! Flights that are treated as domestic Chinese destinations only - excluding Macau, Hong Kong and Taiwan.',
'achievement_category_id' => $funChallenges,
'achievement_difficulty_id' => $hard,
],
// ---------------------------------------------------------------
// Countries & Continents
@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('personal_access_tokens', function (Blueprint $table) {
$table->id();
$table->morphs('tokenable');
$table->text('name');
$table->string('token', 64)->unique();
$table->text('abilities')->nullable();
$table->timestamp('last_used_at')->nullable();
$table->timestamp('expires_at')->nullable()->index();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('personal_access_tokens');
}
};