fix+add: seats + seat-chooser
This commit is contained in:
parent
2c6745e812
commit
b0cc5b5278
31 changed files with 808 additions and 115 deletions
|
@ -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']);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue