v0.11 U1: Kanalmanager mit eigener Webseite und neuen Prozessparametern

- Eigene Webseite als Kanal eigener Art (channels.kind = website), nur zur
  Konfiguration: Webseiten-Anfragen bleiben direkt (A1) ohne Kanalbezug;
  der Eintrag nimmt an Sync, Export, Überwachung und Sperraufgaben nicht teil
  (active()/Property::channels() nur Portale, Feed nur für Portale).
- Neue Einstellungen im bestehenden ProcessSetting: Klärungsreservierung
  automatisch/Freigabe (15/180 min, 0 = keine), Rückfragemodus,
  Erinnerungen, Folgefragen, Erinnerungsabstand, Linkgültigkeit,
  Anschrift im Webformular verlangen (Standard: nein).
- „Kanäle“ in der einfachen Ansicht: Webseite und Portale an einer Stelle,
  Verweis auf „Ihre Standards“; „Wirksame Einstellungen“ mit Spalte
  „Eigene Webseite“ und Herkunft „Webseite“.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-11-03 12:52:50 +01:00
1 parent bfccfe7eed
commit 799869c6a4
27 files changed
+559 -106

No files matched your search

@@ -0,0 +1,54 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Str;
/**
* Prozessarchitektur v0.11, channel manager (E-037): every channel is managed in one place, including the own
* website. A channel is a portal (as before) or the settings entry of the property's website; the website entry is
* never synchronised, exported or monitored. Each existing property gets its website entry.
*/
return new class extends Migration
{
public function up(): void
{
Schema::table('channels', function (Blueprint $table) {
$table->string('kind', 20)->default('portal')->after('property_id');
$table->index(['property_id', 'kind']);
});
foreach (DB::table('properties')->get(['id', 'tenant_id']) as $property) {
$exists = DB::table('channels')->where('property_id', $property->id)->where('kind', 'website')->exists();
if ($exists) {
continue;
}
DB::table('channels')->insert([
'tenant_id' => $property->tenant_id,
'property_id' => $property->id,
'kind' => 'website',
'name' => 'Eigene Webseite',
'connector' => 'website',
'export_token' => Str::random(48),
'is_active' => true,
'status' => 'active',
'booking_model' => 'inquiry',
'created_at' => now(),
'updated_at' => now(),
]);
}
}
public function down(): void
{
DB::table('channels')->where('kind', 'website')->delete();
Schema::table('channels', function (Blueprint $table) {
$table->dropIndex(['property_id', 'kind']);
$table->dropColumn('kind');
});
}
};