- Webseite > Videos (Datei, Standbild, Kapitel mit Raum im Grundriss); Upload bis 100 MB - Titelbereich: Video statt Foto (stumme Schleife, respektiert Bewegung reduzieren/Save-Data) und naechste freie Termine mit Gesamtpreis (NextFreeStays) - Neuer Baustein Rundgang (Video) mit waehlbarer Anordnung; Grundriss springt ins Video - Buchungsseite: Preis unter dem Kalender, Formular rechts, Ablauf als Grafik - Seebad: Fahrkarten, Fahrplan-Kapitel, Sonnenaufgang als einmaliges Ereignis Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
908 B
PHP
30 lines
908 B
PHP
<?php
|
||
|
||
use Illuminate\Database\Migrations\Migration;
|
||
use Illuminate\Database\Schema\Blueprint;
|
||
use Illuminate\Support\Facades\Schema;
|
||
|
||
return new class extends Migration
|
||
{
|
||
/**
|
||
* Website videos (Admin › Webseite › Videos): the file and a poster image live in the media library;
|
||
* chapters ("0:16 Wohnzimmer") let guests jump to a room, also from the floor plan.
|
||
*/
|
||
public function up(): void
|
||
{
|
||
Schema::create('videos', function (Blueprint $table) {
|
||
$table->id();
|
||
$table->foreignId('tenant_id')->constrained()->cascadeOnDelete();
|
||
$table->foreignId('property_id')->nullable()->constrained()->nullOnDelete();
|
||
$table->string('title');
|
||
$table->json('chapters')->nullable();
|
||
$table->timestamps();
|
||
});
|
||
}
|
||
|
||
public function down(): void
|
||
{
|
||
Schema::dropIfExists('videos');
|
||
}
|
||
};
|