projekt wip bofore relations

This commit is contained in:
salam committed 2025-10-03 10:55:01 +02:00
1 parent aa301f1197
commit 69d4efcd9d
11 files changed
+80 -89

No files matched your search

@@ -1,36 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('projektes', function (Blueprint $table) {
$table->id();
$table->foreignId('konto_id')->constrained();
$table->foreignId('auftraggeber_id')->constrained();
$table->foreignId('gutachter_id')->constrained();
$table->string('interner_name');
$table->string('ofizieller_name');
$table->text('beschreibung')->nullable();
$table->string('erstellung')->nullable();
$table->string('status')->default('entwurf');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('projektes');
}
};
@@ -17,7 +17,7 @@ return new class extends Migration
$table->foreignId('auftraggeber_id')->constrained();
$table->foreignId('gutachter_id')->constrained();
$table->string('interner_name');
$table->string('ofizieller_name');
$table->string('offizieller_name');
$table->text('beschreibung')->nullable();
$table->string('erstellung')->nullable();
$table->string('status')->default('entwurf');