id('seat_id'); $table->timestamps(); $table->addColumn('integer', 'seat_row'); $table->addColumn('integer', 'seat_column'); $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']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('seats'); } };