Schnellerkennung von Portalbuchungen per E-Mail
- IMAP-Abruf jede Minute (webklex/php-imap, ohne PHP-imap-Erweiterung) oder signierter Push von n8n - Parser für Buchungs-, Storno- und Anfrage-Mails (de/en), Buchungsnummer, An-/Abreise - Erkannte Buchungen werden sofort gesperrt und an handgepflegte Portale weitergegeben; Kalender-Abgleich übernimmt bzw. ersetzt Mail-Sperren - Unklare Mails: Prüf-Mail + Admin-Liste Portal-E-Mails mit Aktion Sperre anlegen - Überwachung des Postfachs in Monitor und /health/sync Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0b7205e050
commit
e5f9e0762f
33 files changed
+1450
-38
No files matched your search
@@ -0,0 +1,40 @@
|
||||
<?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('portal_emails', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('channel_id')->constrained()->cascadeOnDelete();
|
||||
$table->string('message_id')->unique();
|
||||
$table->string('from');
|
||||
$table->string('subject');
|
||||
$table->dateTime('received_at');
|
||||
$table->string('type');
|
||||
$table->string('status')->index();
|
||||
$table->date('starts_on')->nullable();
|
||||
$table->date('ends_on')->nullable();
|
||||
$table->string('reference')->nullable();
|
||||
$table->foreignId('blocked_period_id')->nullable()->constrained()->nullOnDelete();
|
||||
$table->text('excerpt')->nullable();
|
||||
$table->string('note')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('portal_emails');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user