21-11-2025
This commit is contained in:
parent
fa2ebd457d
commit
07959c0ba2
113 changed files with 4730 additions and 898 deletions
26
database/migrations/2025_11_06_115527_create_hubs_table.php
Normal file
26
database/migrations/2025_11_06_115527_create_hubs_table.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?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('hubs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name'); // z.B. "OWL" oder "Rhein-Main"
|
||||
$table->string('slug')->unique(); // Für saubere URLs, z.B. "owl"
|
||||
$table->string('keyvisual_url')->nullable(); // Keyvisual-Bild des Hubs
|
||||
$table->string('emblem_url')->nullable(); // Wappen-URL des Hubs
|
||||
$table->boolean('is_active')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('hubs');
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue