⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.101
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Server Software:
Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.25
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
taxi.dev-unit.com
/
database
/
migrations
/
View File Name :
2020_11_27_093556_create_fleets_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateFleetsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('fleets', function (Blueprint $table) { $table->uuid('id')->primary(); $table->text('fleet_id'); $table->text('qr_image')->nullable(); $table->unsignedInteger('owner_id'); $table->integer('brand')->unsigned()->nullable(); $table->integer('model')->unsigned()->nullable(); $table->string('license_number'); $table->string('permission_number'); $table->uuid('vehicle_type'); // $table->string('chassis'); // $table->integer('seats'); // $table->integer('luggage'); $table->boolean('class_one')->default(false); $table->boolean('class_two')->default(false); $table->boolean('active')->default(true); $table->boolean('approve')->default(false); $table->text('reason')->nullable(); $table->timestamps(); $table->softDeletes(); $table->foreign('owner_id') ->references('id') ->on('users') ->onDelete('cascade'); $table->foreign('vehicle_type') ->references('id') ->on('vehicle_types') ->onDelete('cascade'); $table->foreign('brand') ->references('id') ->on('car_makes') ->onDelete('cascade'); $table->foreign('model') ->references('id') ->on('car_models') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('fleets'); } }