Visuelle iCal-Regelengine mit Originaldaten und individuellen Exportfeldern integrieren
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m37s

This commit is contained in:
Lars committed 2026-10-27 19:00:25 +01:00
1 parent c4ebccbbea
commit e9db98701b
30 files changed
+1269 -15

No files matched your search

+6
View File
@@ -8,6 +8,7 @@
use Carbon\CarbonInterface;
use Database\Factories\BlockedPeriodFactory;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Attributes\Hidden;
use Illuminate\Database\Eloquent\Attributes\ObservedBy;
use Illuminate\Database\Eloquent\Attributes\Scope;
use Illuminate\Database\Eloquent\Builder;
@@ -21,6 +22,7 @@
* Like bookings, ends_on is the first free day again.
*/
#[ObservedBy(BlockedPeriodObserver::class)]
#[Hidden(['ical_properties', 'ical_raw', 'ical_interpretation'])]
#[Fillable(['property_id', 'channel_id', 'origin_channel_id', 'starts_on', 'ends_on', 'reason', 'source', 'external_uid', 'needs_review', 'review_note', 'missing_imports', 'is_representation', 'canonical_block_id', 'linked_booking_id', 'export_approved', 'reviewed_at'])]
class BlockedPeriod extends Model
{
@@ -44,6 +46,10 @@ protected function casts(): array
'is_representation' => 'boolean',
'export_approved' => 'boolean',
'reviewed_at' => 'immutable_datetime',
'ical_properties' => 'encrypted:array',
'ical_raw' => 'encrypted',
'ical_interpretation' => 'encrypted:array',
'leading_priority' => 'integer',
];
}