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

31 lines
957 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('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');
}
};