CreateProfilesTable::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 23
Code Lines 21

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 21
nc 1
nop 0
dl 0
loc 23
rs 9.584
c 0
b 0
f 0
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateProfilesTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('profiles', function (Blueprint $table) {
17
            $table->id();
18
            $table->unsignedBigInteger('user_id');
19
            $table->string('username')->nullable();
20
            $table->string('profile_pic')->nullable();
21
            $table->integer('status')->default(1);
22
            $table->integer('gender')->nullable();
23
            $table->integer('martial_status')->nullable();
24
            $table->integer('blood_group')->nullable();
25
            $table->string('country')->nullable();
26
            $table->string('address')->nullable();
27
            $table->json('phone_no')->nullable();
28
            $table->string('email')->nullable();
29
            $table->string('birthday')->nullable();
30
            $table->string('facebook')->nullable();
31
            $table->string('instagram')->nullable();
32
            $table->string('twitter')->nullable();
33
            $table->string('linkedin')->nullable();
34
            $table->string('father_name')->nullable();
35
            $table->string('mother_name')->nullable();
36
            $table->timestamps();
37
        });
38
    }
39
40
    /**
41
     * Reverse the migrations.
42
     *
43
     * @return void
44
     */
45
    public function down()
46
    {
47
        Schema::dropIfExists('profiles');
48
    }
49
}
50