Files
bandtoolv2/database/migrations/2025_10_17_043346_bewerbung.php
2025-10-28 22:53:57 +01:00

31 lines
927 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_path')->nullable(); // storage path
$table->string('bedingungen_path')->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');
}
};