BEGIN TRANSACTION;
CREATE TABLE "TELEMETRY" (
	`KEYID`	INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
	`SOURCECALLSIGN`	TEXT DEFAULT NULL,
	`SOURCEID`	INTEGER DEFAULT NULL,
	`DESTINATIONCALLSIGN`	TEXT DEFAULT NULL,
	`DESTINATIONID`	INTEGER DEFAULT NULL,
	`RTCSEC`	INTEGER DEFAULT NULL,
	`RTCMIN`	INTEGER DEFAULT NULL,
	`RTCHOUR`	INTEGER DEFAULT NULL,
	`RTCDAY`	INTEGER DEFAULT NULL,
	`RTCDOW`	INTEGER DEFAULT NULL,
	`RTCMONTH`	INTEGER DEFAULT NULL,
	`RTCYEAR`	INTEGER DEFAULT NULL,
	`GPSLATITUDE`	TEXT DEFAULT NULL,
	`GPSLATITUDEDIR`	TEXT DEFAULT NULL,
	`GPSLONGITUDE`	TEXT DEFAULT NULL,
	`GPSLONGITUDEDIR`	TEXT DEFAULT NULL,
	`GPSALTITUDE`	REAL DEFAULT NULL,
	`GPSALTITUDEUNITS`	TEXT DEFAULT NULL,
	`GPSSPEED`	REAL DEFAULT NULL,
	`GPSFIX`	INTEGER DEFAULT NULL,
	`GPSHDOP`	REAL DEFAULT NULL,
	`GPIOSTATE`	INTEGER DEFAULT NULL,
	`IOSTATE`	INTEGER DEFAULT NULL,
	`RFSTATE`	INTEGER DEFAULT NULL,
	`ADC0`	INTEGER DEFAULT NULL,
	`ADC1`	INTEGER DEFAULT NULL,
	`ADC2`	INTEGER DEFAULT NULL,
	`ADC3`	INTEGER DEFAULT NULL,
	`ADC4`	INTEGER DEFAULT NULL,
	`ADC5`	INTEGER DEFAULT NULL,
	`ADC6`	INTEGER DEFAULT NULL,
	`BOARDTEMP`	INTEGER DEFAULT NULL,
	`ADC8`	INTEGER DEFAULT NULL,
	`HABTIMERSTATE`	INTEGER DEFAULT NULL,
	`HABCUTDOWNSTATE`	INTEGER DEFAULT NULL,
	`HABTRIGGERTIME`	INTEGER DEFAULT NULL,
	`HABTIMER`	INTEGER DEFAULT NULL,
	`EPOCH`	INTEGER DEFAULT NULL
);
COMMIT;
