projekte wip
This commit is contained in:
1 parent
fc974e4793
commit
aa301f1197
6 files changed
+658
-2
No files matched your search
@@ -0,0 +1,36 @@
|
||||
<?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('projekts', 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('projekts');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user