From: Daniel Karbach Date: Sat, 14 May 2022 12:53:44 +0000 (+0200) Subject: alttp seeds table X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;ds=sidebyside;h=0a4af7267374d1a750ed07e9c4b491fea42490af;p=alttp.git alttp seeds table --- diff --git a/app/Models/AlttpSeed.php b/app/Models/AlttpSeed.php new file mode 100644 index 0000000..b160697 --- /dev/null +++ b/app/Models/AlttpSeed.php @@ -0,0 +1,19 @@ + 'array', + 'mystery' => 'boolean', + 'race' => 'boolean', + 'settings' => 'array', + ]; + +} diff --git a/database/migrations/2022_05_14_121327_create_alttp_seeds_table.php b/database/migrations/2022_05_14_121327_create_alttp_seeds_table.php new file mode 100644 index 0000000..eb91025 --- /dev/null +++ b/database/migrations/2022_05_14_121327_create_alttp_seeds_table.php @@ -0,0 +1,41 @@ +id(); + $table->binary('hash'); + $table->string('generator'); + $table->string('preset'); + $table->boolean('race')->default(false); + $table->boolean('mystery')->default(false); + $table->string('seed'); + $table->text('settings'); + $table->string('status')->default('pending'); + $table->text('error_detail')->nullable()->default(null); + $table->timestamps(); + $table->unique('hash'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('alttp_seeds'); + } +};