15 lines
481 B
SQL
15 lines
481 B
SQL
SELECT
|
|
CAST(spawner.vehicle_entity_id AS TEXT) AS gameVehicleId,
|
|
entity.class AS vehicleClass,
|
|
spawner.vehicle_alias AS displayName,
|
|
spawner.is_vehicle_functional AS functional,
|
|
1 AS existsInGame,
|
|
entity.location_x AS x,
|
|
entity.location_y AS y,
|
|
entity.location_z AS z,
|
|
strftime('%Y-%m-%dT%H:%M:%SZ', 'now') AS observedAt
|
|
FROM vehicle_spawner spawner
|
|
JOIN entity ON entity.id = spawner.vehicle_entity_id
|
|
ORDER BY spawner.vehicle_last_access_time DESC
|
|
LIMIT :limit
|