fix transfer time field #129

This commit is contained in:
Nabeel Shahzad 2018-01-30 12:34:35 -06:00
parent ad90d1bccf
commit 00382c6a04
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<?php
use Faker\Generator as Faker;
use App\Models\Enums\UserState;
$factory->define(App\Models\User::class, function (Faker $faker)
{
@ -18,6 +19,7 @@ $factory->define(App\Models\User::class, function (Faker $faker)
'rank_id' => 1,
'flights' => $faker->numberBetween(0, 1000),
'flight_time' => $faker->numberBetween(0, 10000),
'transfer_time' => $faker->numberBetween(0, 10000),
'state' => UserState::ACTIVE,
'remember_token' => $faker->unique()->text(5),
];

View File

@ -27,7 +27,7 @@ class CreateUsersTable extends Migration
$table->string('last_pirep_id', 12)->nullable();
$table->unsignedBigInteger('flights')->default(0);
$table->unsignedBigInteger('flight_time')->nullable()->default(0);
$table->unsignedBigInteger('transferred_time')->nullable()->default(0);
$table->unsignedBigInteger('transfer_time')->nullable()->default(0);
$table->decimal('balance', 19)->nullable();
$table->string('timezone', 64)->nullable();
$table->unsignedTinyInteger('status')->nullable()->default(0);