Teilnahmerechnungen erstellen

This commit is contained in:
2026-09-03 00:08:46 +02:00
parent a61344395a
commit 9c4c28e566
79 changed files with 4303 additions and 75 deletions
@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Vorlage für generierte Dokumente (aktuell: Anmelde-Rechnung), zerlegt in einzeln pflegbare Blöcke.
*
* Bewusst app-weit und ohne Tenant-Spalte (Model erbt `CommonModel`, also kein `SiteScope`) -- es gibt
* eine Vorlage für alle Tenants, tenant-spezifisch sind nur die eingesetzten Werte. Vorbild ist
* `page_texts`.
*
* Der Inhalt liegt in der Datenbank statt im Blade, damit ein Release ihn nicht überschreibt.
*/
return new class extends Migration {
public function up(): void
{
Schema::create('document_templates', function (Blueprint $table) {
$table->id();
$table->string('document_type');
$table->string('block');
$table->longText('content')->nullable();
$table->integer('sort_order')->default(1);
$table->boolean('editable')->default(true);
$table->timestamps();
$table->unique(['document_type', 'block']);
});
}
public function down(): void
{
Schema::dropIfExists('document_templates');
}
};