zwischencommit

This commit is contained in:
Nils Bonorden committed 2025-10-28 21:51:43 +01:00
1 parent bdb62a6ce2
commit ed07d3ef70
8 files changed
+263 -5

No files matched your search

@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void
{
Schema::create('bewerbungen', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('slug')->unique();
$table->text('text')->nullable();
$table->boolean('active')->default(false);
$table->boolean('time')->default(false);
$table->string('pdf_path')->nullable();
$table->string('pic_path')->nullable();
$table->string('bedingungen_path')->nullable();
$table->timestamp('start_at')->nullable();
$table->timestamp('end_at')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('bewerbungen');
}
};
@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void
{
Schema::create('bands', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('email')->unique();
$table->string('phone')->nullable();
$table->string('city')->nullable();
$table->string('website')->nullable();
$table->string('spotify')->nullable();
$table->string('instagram')->nullable();
$table->string('youtube')->nullable();
$table->text('about')->nullable();
$table->string('tech_rider_path')->nullable();
$table->string('stage_plan_path')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('bands');
}
};
@@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
public function up(): void
{
Schema::create('band_applications', function (Blueprint $table) {
$table->id();
$table->foreignId('band_id')->constrained('bands')->cascadeOnDelete();
$table->foreignId('bewerbung_id')->constrained('bewerbungen')->cascadeOnDelete();
$table->string('status')->default('submitted');
$table->text('message')->nullable();
$table->string('demo_link')->nullable();
$table->boolean('privacy_ok')->default(false);
$table->timestamps();
$table->unique(['band_id','bewerbung_id']);
});
}
public function down(): void
{
Schema::dropIfExists('band_applications');
}
};