2023-04-13 20:46:28 -05:00
|
|
|
DROP TABLE IF EXISTS frames;
|
|
|
|
|
|
|
|
CREATE TABLE frames (
|
|
|
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
2023-04-14 22:06:48 -05:00
|
|
|
addresse TEXT,
|
|
|
|
alive INT,
|
|
|
|
altitude REAL,
|
|
|
|
comment TEXT,
|
|
|
|
course REAL,
|
2023-04-13 20:46:28 -05:00
|
|
|
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
2023-05-13 20:59:38 -05:00
|
|
|
created_unix INT,
|
2023-04-14 22:06:48 -05:00
|
|
|
format TEXT,
|
|
|
|
frame TEXT,
|
|
|
|
"from" TEXT,
|
|
|
|
gpsfixstatus TEXT,
|
|
|
|
latitude REAL,
|
|
|
|
longitude REAL,
|
|
|
|
mbits INT,
|
|
|
|
messagecapable INT,
|
|
|
|
message_text TEXT,
|
2023-04-27 19:29:22 -05:00
|
|
|
msgNo INT,
|
2023-04-14 22:06:48 -05:00
|
|
|
mtype TEXT,
|
|
|
|
object_format TEXT,
|
|
|
|
object_name TEXT,
|
|
|
|
path TEXT,
|
2023-04-16 10:04:48 -05:00
|
|
|
phg REAL,
|
|
|
|
phg_dir TEXT,
|
|
|
|
phg_gain REAL,
|
|
|
|
phg_height REAL,
|
|
|
|
phg_power REAL,
|
|
|
|
phg_range REAL,
|
2023-04-14 22:06:48 -05:00
|
|
|
posambiguity INT,
|
|
|
|
raw TEXT,
|
|
|
|
raw_timestamp TEXT,
|
|
|
|
speed REAL,
|
|
|
|
station_call TEXT,
|
|
|
|
station_lat REAL,
|
|
|
|
station_lon REAL,
|
|
|
|
status TEXT,
|
2023-04-16 16:45:22 -05:00
|
|
|
subpacket TEXT,
|
2023-04-14 22:06:48 -05:00
|
|
|
symbol TEXT,
|
|
|
|
symbol_table TEXT,
|
|
|
|
telemetry TEXT,
|
|
|
|
timestamp INT,
|
|
|
|
"to" TEXT,
|
|
|
|
tEQNS TEXT,
|
|
|
|
tPARM TEXT,
|
|
|
|
tUNIT TEXT,
|
|
|
|
via TEXT,
|
|
|
|
weather TEXT,
|
|
|
|
wx_raw_timestamp TIMESTAMP
|
2023-04-13 20:46:28 -05:00
|
|
|
);
|
2023-07-08 21:56:15 -05:00
|
|
|
|
|
|
|
CREATE TABLE "stations" (
|
|
|
|
"id" INTEGER NOT NULL UNIQUE,
|
|
|
|
"from" TEXT UNIQUE,
|
|
|
|
"frames_id" INTEGER,
|
|
|
|
"last_heard_unix" INTEGER,
|
|
|
|
"count" INTEGER,
|
|
|
|
PRIMARY KEY("id" AUTOINCREMENT)
|
|
|
|
);
|