Pakete 7 und 9: Auskunft und Buchungswunsch, Aufenthalt und Abschluss (Zwischenstand)

- Haltefrist 0: unverbindliche Auskunft mit signiertem Link "Buchung anfragen",
  erneute Prüfung unter Sperre, automatische oder manuelle Bestätigung, Absage
  bei vergebenem Zeitraum, Ablauf unbeantworteter Auskünfte
- Aufenthalt: Anreisedaten, Aufgaben je Wohnung, gebuchte Leistungen,
  Abweichungen und Folgeaufgaben als Aufgaben am Vorgang
- Abschluss getrennt: Aufenthalt abgeschlossen / kaufmännisch abgeschlossen,
  Nachläufer (Forderung, Auszahlung) bleiben sichtbar
- Zahlungsstatus nur aus Geld auf unserem Konto; Altbestand per Vorschau-Befehl
- Verlauf weist Testzustellungen als solche aus
- Abnahmetests T16-T25, T23 über isolierten SMTP-Empfänger

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-02 08:29:19 +01:00
1 parent 3bcfc09417
commit 40d20cb7d1
52 files changed
+3196 -89

No files matched your search

@@ -0,0 +1,68 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Packages 7 and 9 (Prozessarchitektur v0.10): information "unter Vorbehalt" and the guest's booking wish for requests
* without a hold; preparation, stay and the two closings of a case (stay closed / commercially settled); stay tasks of a
* property and tasks that are not unique per kind (services, issues, follow-ups).
*/
return new class extends Migration
{
public function up(): void
{
Schema::table('bookings', function (Blueprint $table) {
$table->unsignedSmallInteger('information_version')->default(0)->after('offer_version');
$table->dateTime('information_sent_at')->nullable()->after('information_version');
$table->dateTime('information_valid_until')->nullable()->after('information_sent_at');
$table->json('information')->nullable()->after('information_valid_until');
$table->dateTime('wish_at')->nullable()->after('information');
$table->json('wish')->nullable()->after('wish_at');
$table->string('arrival_time', 40)->nullable()->after('departure');
$table->dateTime('completed_at')->nullable();
$table->dateTime('settled_at')->nullable();
$table->string('settled_note', 500)->nullable();
$table->string('settled_by')->nullable();
});
Schema::table('properties', function (Blueprint $table) {
$table->json('stay_tasks')->nullable();
$table->boolean('asks_arrival_time')->default(false);
});
Schema::table('booking_tasks', function (Blueprint $table) {
$table->string('subject', 80)->default('')->after('kind');
$table->string('title')->nullable()->after('subject');
$table->string('responsible')->nullable()->after('title');
});
// The new unique key is added before the old one is dropped: MariaDB needs an index on booking_id for its foreign key.
Schema::table('booking_tasks', function (Blueprint $table) {
$table->unique(['booking_id', 'kind', 'subject']);
});
Schema::table('booking_tasks', function (Blueprint $table) {
$table->dropUnique(['booking_id', 'kind']);
});
}
public function down(): void
{
Schema::table('booking_tasks', function (Blueprint $table) {
$table->unique(['booking_id', 'kind']);
});
Schema::table('booking_tasks', function (Blueprint $table) {
$table->dropUnique(['booking_id', 'kind', 'subject']);
$table->dropColumn(['subject', 'title', 'responsible']);
});
Schema::table('properties', function (Blueprint $table) {
$table->dropColumn(['stay_tasks', 'asks_arrival_time']);
});
Schema::table('bookings', function (Blueprint $table) {
$table->dropColumn(['information_version', 'information_sent_at', 'information_valid_until', 'information', 'wish_at', 'wish', 'arrival_time', 'completed_at', 'settled_at', 'settled_note', 'settled_by']);
});
}
};