Files
bandtoolv2/database/migrations/2025_10_24_000010_create_bands_table.php
T
2025-10-28 21:51:43 +01:00

32 lines
988 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('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');
}
};