increments('id'); $table->bigInteger('user_id')->nullable(); $table->bigInteger('asset_id')->nullable(); $table->string('name', 100)->nullable(); $table->bigInteger('departure_location_id')->nullable(); $table->bigInteger('arrival_location_id')->nullable(); $table->longText('waypoint')->nullable(); $table->timestamp('schedule_time')->nullable(); $table->text('purpose_of_journey')->nullable(); $table->enum('status', ['Draft','Pending','Approved','Rejected','Live','Completed'])->nullable(); $table->enum('is_template', ['Yes','No'])->nullable(); $table->string('template_name', 255)->nullable(); $table->string('slug', 200)->nullable(); $table->string('user_type', 100)->nullable(); $table->decimal('current_latitude', 11,8)->nullable(); $table->decimal('current_longitude', 11,8)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('plans'); } }