id('seat_id'); $table->timestamps(); $table->addColumn('integer', 'seat_row'); $table->addColumn('integer', 'seat_column'); $table->addColumn('enum', 'seat_type', ['values' => ['standard', 'wheelchair', 'loveseat']]); $table->foreignId('room_id')->constrained('rooms', 'room_id'); $table->unique(['room_id', 'seat_row', 'seat_column']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('seats'); } };