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

@@ -29,20 +29,27 @@ class CreateJumpBridgeFuelLevelsTables extends Migration
$table->unsignedBigInteger('corporation_id');
$table->boolean('services');
$table->enum('state'. [
'anchor_vulnerable',
'anchoring',
'armor_reinforce',
'armor_vulnerable',
'deploy_vulnerable',
'fitting_invulnerable',
'hull_reinforce',
'hull_vulnerable',
'online_deprecated',
'onlining_vulnerable',
'shield_vulnerable',
'unanchored',
'unknown',
]);
$table->dateTime('state_timer_start')->nullable();
$table->dateTime('state_timer_end')->nullable();
$table->dateTime('fuel_expires')->nullable();
$table->unsignedBigInteger('profile_id');
$table->unsignedBigInteger('position_x');
$table->unsignedBigInteger('position_y');
$table->unsignedBigInteger('position_z');
$table->dateTime('next_reinforce_apply')->nullable();
$table->unsignedInteger('next_reinforce_hour')->nullable();
$table->unsignedInteger('next_reinforce_weekday')->nullable();
$table->unsignedInteger('reinforce_hour');
$table->unsignedInteger('reinforce_weekday')->nullable();
$table->dateTime('unanchors_at')->nullable();
$table->timestamps();
});
@@ -54,7 +61,9 @@ class CreateJumpBridgeFuelLevelsTables extends Migration
$table->unsignedBigInteger('structure_id');
$table->string('name');
$table->enum('state', [
'online',
'offline',
'cleanup',
]);
$table->timestamps();
});
@@ -67,11 +76,130 @@ class CreateJumpBridgeFuelLevelsTables extends Migration
$table->boolean('is_singleton');
$table->unsignedBigInteger('item_id');
$table->enum('location_flag', [
'AssetSafety',
'AutoFit',
'Bonus',
'Booster',
'BoosterBay',
'Capsule',
'Cargo',
'CorpDeliveries',
'CorpSAG1',
'CorpSAG2',
'CorpSAG3',
'CorpSAG4',
'CorpSAG5',
'CorpSAG6',
'CorpSAG7',
'CrateLoot',
'Deliveries',
'DroneBay',
'DustBattle',
'DustDatabank',
'FighterBay',
'FighterTube0',
'FighterTube1',
'FighterTube2',
'FighterTube3',
'FighterTube4',
'FleetHangar',
'FrigateEscapeBay',
'Hangar',
'HangarAll',
'HiSlot0',
'HiSlot1',
'HiSlot2',
'HiSlot3',
'HiSlot4',
'HiSlot5',
'HiSlot6',
'HiSlot7',
'HiddenModifiers',
'Implant',
'Impounded',
'JunkyardReprocessed',
'JunkyardTrashed',
'LoSlot0',
'LoSlot1',
'LoSlot2',
'LoSlot3',
'LoSlot4',
'LoSlot5',
'LoSlot6',
'LoSlot7',
'Locked',
'MedSlot0',
'MedSlot1',
'MedSlot2',
'MedSlot3',
'MedSlot4',
'MedSlot5',
'MedSlot6',
'MedSlot7',
'OfficeFolder',
'Pilot',
'PlanetSurface',
'QuafeBay',
'QuantumCoreRoom',
'Reward',
'RigSlot0',
'RigSlot1',
'RigSlot2',
'RigSlot3',
'RigSlot4',
'RigSlot5',
'RigSlot6',
'RigSlot7',
'SecondaryStorage',
'ServiceSlot0',
'ServiceSlot1',
'ServiceSlot2',
'ServiceSlot3',
'ServiceSlot4',
'ServiceSlot5',
'ServiceSlot6',
'ServiceSlot7',
'ShipHangar',
'ShipOffline',
'Skill',
'SkillInTraining',
'SpecializedAmmoHold',
'SpecializedCommandCenterHold',
'SpecializedFuelBay',
'SpecializedGasHold',
'SpecializedIndustrialShipHold',
'SpecializedLargeShipHold',
'SpecializedMaterialBay',
'SpecializedMediumShipHold',
'SpecializedMineralHold',
'SpecializedOreHold',
'SpecializedPlanetaryCommoditiesHold',
'SpecializedSalvageHold',
'SpecializedShipHold',
'SpecializedSmallShipHold',
'StructureActive',
'StructureFuel',
'StructureInactive',
'StructureOffline',
'SubSystemBay',
'SubSystemSlot0',
'SubSystemSlot1',
'SubSystemSlot2',
'SubSystemSlot3',
'SubSystemSlot4',
'SubSystemSlot5',
'SubSystemSlot6',
'SubSystemSlot7',
'Unlocked',
'Wallet',
'Wardrobe',
]);
$table->unsignedBigInteger('location_id');
$table->enum('location_type', [
'station',
'solar_system',
'item',
'other',
]);
$table->unsignedBigInteger('quantity');
$table->unsignedBigInteger('type_id');