Edit File: 2021_06_29_105926_create_complains_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateComplainsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('complains', function (Blueprint $table) { $table->id(); $table->foreignId('user_id')->nullable()->constrained()-> onDelete( 'cascade' ); $table->string('subject')->nullable(); $table->longText('text')->nullable(); $table->string('src')->nullable(); $table->string('phone')->nullable(); $table->enum('status',['open','in_progress','finished','closed'])->nullable(); $table->boolean('showOrNow')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('complains'); } }
Back to File Manager