Public Access
bugfixes
This commit is contained in:
1 parent
3db040e243
commit
9a3187f9b6
11 files changed
+332
-114
No files matched your search
@@ -10,31 +10,17 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('bewerbungen', function (Blueprint $table) {
|
||||
$table->id();
|
||||
|
||||
// Basisdaten
|
||||
$table->string('name', 255);
|
||||
$table->text('text'); // Bewerbungstext ist i.d.R. länger als 255
|
||||
|
||||
// Dateien (optional) – Pfade in /storage/app/public/...
|
||||
$table->string('pic_path', 2048)->nullable();
|
||||
$table->string('bedingungen_path', 2048)->nullable();
|
||||
|
||||
// Status & Zeitsteuerung
|
||||
$table->boolean('active')->default(true)->index(); // "aktiv" -> lieber englisch/konsequent
|
||||
$table->boolean('timed')->default(false)->index(); // ob zeitgesteuert
|
||||
|
||||
// Zeitraum (optional, wenn timed = true)
|
||||
$table->timestamp('start_at')->nullable()->index();
|
||||
$table->timestamp('end_at')->nullable()->index();
|
||||
|
||||
$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();
|
||||
});
|
||||
|
||||
// OPTIONAL: DB-Check (MySQL 8+/Postgres) – nur wenn deine DB & Laravel-Version das unterstützen
|
||||
// Schema::table('bewerbungen', function (Blueprint $table) {
|
||||
// $table->check('(end_at IS NULL OR start_at IS NULL OR end_at >= start_at)');
|
||||
// });
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
|
||||
Reference in new issue
Block a user