added backend functions for jump bridge fuel display with the new way we are doing jobs

This commit is contained in:
2021-05-17 06:08:05 +09:00
parent a0c0186337
commit de0071734b
15 changed files with 824 additions and 60 deletions

View File

@@ -34,6 +34,7 @@ class Asset extends Model
'location_type',
'quantity',
'type_id',
'created_at',
'updated_at',
];

View File

@@ -10,7 +10,7 @@ class Service extends Model
public $table = 'alliance_services';
//Timestamps
public $timestamps = false;
public $timestamps = true;
//Primary Key
public $primaryKey = 'id';
@@ -24,6 +24,8 @@ class Service extends Model
'structure_id',
'name',
'state',
'created_at',
'updated_at',
];
public function structure() {

View File

@@ -31,6 +31,7 @@ class Structure extends Model
'solar_system_id',
'solar_system_name',
'type_id',
'type_name',
'corporation_id',
'services', //True or false on whether it has services which are held in a different table
'state',
@@ -38,15 +39,12 @@ class Structure extends Model
'state_timer_end',
'fuel_expires',
'profile_id',
'position_x',
'position_y',
'position_z',
'next_reinforce_apply',
'next_reinforce_hour',
'next_reinforce_weekday',
'reinforce_hour',
'reinforce_weekday',
'unanchors_at',
'created_at',
'updated_at',
];
public function services() {