org.postgresql.Driver
jdbc:postgresql:traccar
postgres
postgres
300
id - Long
imei - String
<-->
SELECT id, imei
FROM devices
imei - String
<-->
INSERT INTO devices (id,imei)
VALUES (nextval('devicesSQ'),:imei)
id - Long
imei - String
<-->
UPDATE devices
SET imei = :imei
WHERE id = :id
id - Long
<-->
DELETE FROM devices
WHERE id = :id
device_id - Long
<-->
SELECT *
FROM positions
WHERE device_id = :device_id
device_id - Long
time - Date
valid - Boolean
latitude - Double
longitude - Double
speed - Double
course - Double
power - Double (NULL for some protocols)
mode - Integer
extended_info - String (XML)
<-->
INSERT INTO positions (id, device_id, time, valid, latitude, longitude, speed, course, power, mode, address)
VALUES (nextval('positionsSQ'),:device_id, :time, :valid, :latitude, :longitude, :speed, :course, :power, :mode, :address)
true
8082
true
true
jornadaLOG
false
5000
0
false
5001
0
false
5002
0
false
5003
0
false
5004
0
false
5005
0
false
5006
0
false
5007
0
false
5008
0
false
5009
0
true
8801
0