fix+add: seats + seat-chooser

This commit is contained in:
Didier Slof 2023-01-01 20:13:11 +01:00
parent 2c6745e812
commit b0cc5b5278
Signed by: didier
GPG key ID: 01E71F18AA4398E5
31 changed files with 808 additions and 115 deletions

View file

@ -18,7 +18,8 @@ return new class extends Migration
$table->timestamps();
$table->addColumn('integer', 'seat_row');
$table->addColumn('integer', 'seat_column');
$table->addColumn('enum', 'seat_type', ['values' => ['standard', 'wheelchair', 'loveseat']]);
$table->enum('seat_type', ['standard', 'wheelchair', 'loveseat', 'not_available']);
$table->foreignId('seat_linked_id')->nullable()->constrained('seats', 'seat_id');
$table->foreignId('room_id')->constrained('rooms', 'room_id');
$table->unique(['room_id', 'seat_row', 'seat_column']);
});