Erinnerungsabstand und taegliche/woechentliche Zusammenfassung einstellbar

System > Betrieb > Benachrichtigungen: offene Meldungen (Doppelbuchungen im
Postfach, Portal-Aufgaben) nur einmal oder alle 1/2/3/7 Tage erneut senden;
Tages- und/oder Wochenuebersicht mit waehlbarer Uhrzeit, Wochentag und Inhalt
(Postfach, Anfragen, Neues, An-/Abreisen, Zahlungen, Portale, Bewertungen).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-10-30 10:11:15 +01:00
1 parent 70a39315e2
commit 1c757f7429
20 files changed
+842 -22

No files matched your search

@@ -0,0 +1,47 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Landlords choose how often an open finding is repeated by e-mail and whether they get a daily and/or
* weekly summary. Inbox messages remember when they were last mailed and last detected.
*/
public function up(): void
{
Schema::table('tenants', function (Blueprint $table) {
$table->unsignedSmallInteger('reminder_interval_days')->default(0);
$table->boolean('digest_daily')->default(true);
$table->boolean('digest_weekly')->default(false);
$table->unsignedTinyInteger('digest_weekday')->default(1);
$table->unsignedTinyInteger('digest_hour')->default(7);
$table->json('digest_sections')->nullable();
$table->boolean('digest_when_empty')->default(false);
$table->date('digest_daily_sent_on')->nullable();
$table->date('digest_weekly_sent_on')->nullable();
});
Schema::table('inbox_messages', function (Blueprint $table) {
$table->timestamp('notified_at')->nullable()->after('action_url');
$table->timestamp('last_seen_at')->nullable()->after('notified_at');
});
DB::table('inbox_messages')->update(['notified_at' => DB::raw('created_at'), 'last_seen_at' => DB::raw('created_at')]);
}
public function down(): void
{
Schema::table('inbox_messages', function (Blueprint $table) {
$table->dropColumn(['notified_at', 'last_seen_at']);
});
Schema::table('tenants', function (Blueprint $table) {
$table->dropColumn(['reminder_interval_days', 'digest_daily', 'digest_weekly', 'digest_weekday', 'digest_hour',
'digest_sections', 'digest_when_empty', 'digest_daily_sent_on', 'digest_weekly_sent_on']);
});
}
};