26 lines
801 B
PHP
26 lines
801 B
PHP
<?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');
|
|
}
|
|
};
|