// SYSTEM PANEL //
[ROOT]
/
mnt
/
pleskStorage
/
vhosts
/
kodsolutions.net
/
subdomains
/
syaaraa.kodsolutions.net
/
database
/
migrations
[ PARENT ]
EDIT :: 2022_02_16_162953_create_offices_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class() extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('offices', function (Blueprint $table) { $table->id(); $table->boolean('active')->default(0)->nullable(); $table->integer('position')->default(0)->nullable(); $table ->foreignId('user_id') ->nullable() ->constrained() ->on('users') ->onUpdate('cascade') ->onDelete('cascade'); $table->longText('title')->nullable(); $table->longText('address')->nullable(); $table->text('latitude')->nullable(); $table->text('longitude')->nullable(); $table->text('map_link')->nullable(); $table->string('image')->nullable(); $table->string('slug')->nullable(); $table->string('phone')->nullable(); $table->softDeletes(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('offices'); } };
SAVE
CANCEL