add transfer time fields in user table #129
This commit is contained in:
parent
ec5478a766
commit
ad90d1bccf
@ -27,6 +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->decimal('balance', 19)->nullable();
|
||||
$table->string('timezone', 64)->nullable();
|
||||
$table->unsignedTinyInteger('status')->nullable()->default(0);
|
||||
|
@ -43,6 +43,7 @@ class User extends Authenticatable
|
||||
'last_pirep_id',
|
||||
'flights',
|
||||
'flight_time',
|
||||
'transferred_time',
|
||||
'balance',
|
||||
'timezone',
|
||||
'state',
|
||||
@ -55,16 +56,18 @@ class User extends Authenticatable
|
||||
* The attributes that should be hidden for arrays.
|
||||
*/
|
||||
protected $hidden = [
|
||||
'api_key',
|
||||
'password',
|
||||
'remember_token',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'flights' => 'integer',
|
||||
'flight_time' => 'integer',
|
||||
'balance' => 'double',
|
||||
'state' => 'integer',
|
||||
'status' => 'integer',
|
||||
'flights' => 'integer',
|
||||
'flight_time' => 'integer',
|
||||
'transferred_time' => 'integer',
|
||||
'balance' => 'double',
|
||||
'state' => 'integer',
|
||||
'status' => 'integer',
|
||||
];
|
||||
|
||||
public static $rules = [
|
||||
|
Loading…
Reference in New Issue
Block a user