Conditions | 2 |
Paths | 2 |
Total Lines | 25 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function up() |
||
10 | { |
||
11 | if (!Schema::hasTable('people')) { |
||
12 | Schema::create('people', function (Blueprint $table) { |
||
13 | $table->increments('id'); |
||
14 | |||
15 | $table->tinyInteger('title')->nullable(); |
||
16 | $table->string('name')->index(); |
||
17 | $table->string('appellative')->index()->nullable(); |
||
18 | |||
19 | $table->string('uid')->nullable()->unique(); |
||
20 | $table->string('email')->unique()->nullable(); |
||
21 | $table->string('phone')->nullable(); |
||
22 | $table->string('birthday')->nullable(); |
||
23 | |||
24 | $table->string('bank')->nullable(); |
||
25 | $table->string('bank_account')->nullable(); |
||
26 | |||
27 | $table->text('obs')->nullable(); |
||
28 | |||
29 | $table->integer('created_by')->unsigned()->index()->nullable(); |
||
30 | |||
31 | $table->integer('updated_by')->unsigned()->index()->nullable(); |
||
32 | |||
33 | $table->timestamps(); |
||
34 | }); |
||
43 |