standards wip

This commit is contained in:
salam committed 2025-10-10 13:33:29 +02:00
1 parent 4f865b52a6
commit 7eaa8c0da2
32 files changed
+326 -98

No files matched your search

@@ -13,7 +13,6 @@ return new class extends Migration
{
Schema::create('methodes', function (Blueprint $table) {
$table->id();
$table->string('kennung');
$table->string('name');
$table->text('description');
$table->timestamps();
@@ -13,8 +13,9 @@ return new class extends Migration
{
Schema::create('textblocks', function (Blueprint $table) {
$table->id();
$table->string('kennung');
$table->string('name');
$table->string('beschreibung')->nullable();
$table->integer('textblock_kennung_id')->default(0);
$table->text('textblock');
$table->timestamps();
});
@@ -13,9 +13,10 @@ return new class extends Migration
{
Schema::create('inhaltsverzeichnis', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->integer('textblock_kennung_id')->default(0);
$table->integer('sort')->default(0);
$table->double('ordnungszahl')->default(0.00);
$table->string('text');
$table->integer('seite')->default(0);
$table->timestamps();
});
@@ -0,0 +1,34 @@
<?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('projekt_inhaltsverzeichnis', function (Blueprint $table) {
$table->id();
$table->foreignId('projekte_id')->constrained()->cascadeOnDelete();
$table->integer('textblock_kennung_id')->default(0);
$table->integer('sort')->default(0);
$table->double('ordnungszahl')->default(0.00);
$table->string('name');
$table->text('textblock');
$table->integer('seite')->default(0);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('projekt_inhaltsverzeichnis');
}
};
@@ -0,0 +1,28 @@
<?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('textblock_kennungs', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('textblock_kennungs');
}
};