61 lines
1.4 KiB
SQL
61 lines
1.4 KiB
SQL
CREATE TABLE IF NOT EXISTS casualtydetails (
|
|
casualty INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
reportid INTEGER,
|
|
-- fname TEXT,
|
|
-- lname TEXT,
|
|
-- address TEXT,
|
|
gender TEXT,
|
|
dob TEXT,
|
|
age INTEGER,
|
|
alcohol TEXT,
|
|
allergies TEXT,
|
|
allergydetails TEXT,
|
|
medicinetaken TEXT,
|
|
medhist TEXT,
|
|
flight TEXT,
|
|
seat TEXT,
|
|
arrivalairport TEXT,
|
|
lastmeal TEXT,
|
|
detailsadded TEXT,
|
|
detailssent TEXT,
|
|
detailsack TEXT,
|
|
deleted INTEGER
|
|
);
|
|
CREATE TABLE IF NOT EXISTS reportdetail (
|
|
repdetailid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
reportid INTEGER,
|
|
messagetype TEXT,
|
|
entrytype TEXT,
|
|
entryname TEXT,
|
|
entryvalue TEXT,
|
|
entryvalue2 TEXT,
|
|
entrylogged TEXT,
|
|
processing NUMBER,
|
|
reportsent TEXT,
|
|
reportack TEXT,
|
|
deleted INTEGER
|
|
);
|
|
CREATE TABLE IF NOT EXISTS reports (
|
|
reportid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
sessionid TEXT,
|
|
loggedat TEXT,
|
|
complaint TEXT,
|
|
history TEXT,
|
|
batterystatus INTEGER,
|
|
gpslat TEXT,
|
|
gpslong TEXT,
|
|
deleted INTEGER
|
|
);
|
|
CREATE TABLE IF NOT EXISTS chats (
|
|
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
incidentid TEXT,
|
|
aibermsg TEXT,
|
|
controlmsg TEXT,
|
|
msgtime INTEGER,
|
|
msgrecd INTEGER,
|
|
msgread INTEGER,
|
|
msgsent INTEGER,
|
|
msgack INTEGER,
|
|
msgjson INTEGER,
|
|
deleted INTEGER
|
|
) |