Files
bandtoolv2/database/migrations/2025_10_17_043346_bewerbung.php
T
2025-10-17 10:22:41 +02:00

31 lines
909 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', 255);
$table->text('text');
$table->string('pic')->nullable(); // storage path
$table->string('pdf')->nullable(); // storage path
$table->boolean('active')->default(false);
$table->boolean('time')->default(false);
$table->timestamp('start_at')->nullable();
$table->timestamp('end_at')->nullable();
$table->timestampsTz();
$table->softDeletesTz();
});
}
public function down(): void
{
Schema::dropIfExists('bewerbungen');
}
};