Edit File: 2022_01_25_111003_create_authentications_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateAuthenticationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('authentications', function (Blueprint $table) { $table->id(); $table->foreignId('user_id')->constrained()->references('id')->on('users')->onDelete('cascade'); $table->string('uid')->nullable(); $table->string('profileURL')->nullable(); $table->string('access_token')->nullable(); $table->string('photo')->nullable(); $table->string('username')->nullable(); $table->string('description')->nullable(); $table->string('firstName')->nullable(); $table->string('lastName')->nullable(); $table->enum('gender',['male','female'])->nullable(); $table->string('language')->nullable(); $table->integer('birthDay')->nullable(); $table->integer('birthMonth')->nullable(); $table->integer('birthYear')->nullable(); $table->string('email')->nullable(); $table->string('emailVerified')->nullable(); $table->string('phone')->nullable(); $table->string('address')->nullable(); $table->string('country')->nullable(); $table->string('region')->nullable(); $table->string('city')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('authentications'); } }
Back to File Manager