bigIncrements('id'); $table->string('bike_no', 50)->comment('车辆编号'); $table->string('box_no', 50)->comment('控制设备编号'); $table->bigInteger('bike_id')->default(0)->comment('车id'); $table->bigInteger('area_id')->default(0)->comment('区域id'); $table->float('latitude', 10, 7)->default(0.00)->comment('维度'); $table->float('longitude', 10, 7)->default(0.00)->comment('经度'); $table->tinyInteger('battery_power')->default(0)->comment('电量'); $table->tinyInteger('status')->default(1); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('location_logs'); } }