2013-03-28 09:27:27 +01:00
|
|
|
CREATE TABLE eventlog(
|
|
|
|
user TEXT,
|
|
|
|
realm TEXT,
|
|
|
|
sessionid TEXT COLLATE NOCASE,
|
|
|
|
timestamp TEXT,
|
|
|
|
notes TEXT,
|
|
|
|
dump TEXT,
|
|
|
|
addr TEXT
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE sessions(
|
|
|
|
timestamp TEXT,
|
|
|
|
id TEXT COLLATE NOCASE,
|
|
|
|
user TEXT,
|
|
|
|
realm TEXT,
|
|
|
|
password TEXT,
|
|
|
|
machine_managed BOOLEAN,
|
|
|
|
operation INTEGER,
|
|
|
|
type TEXT,
|
|
|
|
pps TEXT,
|
|
|
|
redirect_uri TEXT,
|
|
|
|
devinfo TEXT,
|
|
|
|
devdetail TEXT,
|
|
|
|
cert TEXT,
|
2018-09-15 01:53:49 +02:00
|
|
|
cert_pem TEXT,
|
2018-10-17 18:08:12 +02:00
|
|
|
mac_addr TEXT,
|
2018-12-15 17:00:12 +01:00
|
|
|
osu_user TEXT,
|
|
|
|
osu_password TEXT,
|
|
|
|
eap_method TEXT,
|
|
|
|
mobile_identifier_hash TEXT,
|
2018-10-17 18:08:12 +02:00
|
|
|
test TEXT
|
2013-03-28 09:27:27 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE index sessions_id_index ON sessions(id);
|
|
|
|
|
|
|
|
CREATE TABLE osu_config(
|
|
|
|
realm TEXT,
|
|
|
|
field TEXT,
|
|
|
|
value TEXT
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE users(
|
|
|
|
identity TEXT PRIMARY KEY,
|
|
|
|
methods TEXT,
|
|
|
|
password TEXT,
|
|
|
|
machine_managed BOOLEAN,
|
|
|
|
remediation TEXT,
|
|
|
|
phase2 INTEGER,
|
|
|
|
realm TEXT,
|
|
|
|
policy TEXT,
|
|
|
|
devinfo TEXT,
|
|
|
|
devdetail TEXT,
|
|
|
|
pps TEXT,
|
|
|
|
fetch_pps INTEGER,
|
|
|
|
osu_user TEXT,
|
|
|
|
osu_password TEXT,
|
|
|
|
shared INTEGER,
|
|
|
|
cert TEXT,
|
2018-04-30 16:45:13 +02:00
|
|
|
cert_pem TEXT,
|
2018-09-15 01:53:49 +02:00
|
|
|
t_c_timestamp INTEGER,
|
2018-10-07 11:47:21 +02:00
|
|
|
mac_addr TEXT,
|
2018-10-19 18:00:37 +02:00
|
|
|
last_msk TEXT,
|
|
|
|
polupd_done TEXT,
|
2019-01-23 00:03:46 +01:00
|
|
|
subrem TEXT
|
2013-03-28 09:27:27 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE wildcards(
|
|
|
|
identity TEXT PRIMARY KEY,
|
|
|
|
methods TEXT
|
|
|
|
);
|
2018-04-30 16:45:13 +02:00
|
|
|
|
|
|
|
CREATE TABLE authlog(
|
|
|
|
timestamp TEXT,
|
|
|
|
session TEXT,
|
|
|
|
nas_ip TEXT,
|
|
|
|
username TEXT,
|
|
|
|
note TEXT
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE pending_tc(
|
|
|
|
mac_addr TEXT PRIMARY KEY,
|
|
|
|
identity TEXT
|
|
|
|
);
|
2018-06-22 19:22:40 +02:00
|
|
|
|
|
|
|
CREATE TABLE current_sessions(
|
|
|
|
mac_addr TEXT PRIMARY KEY,
|
|
|
|
identity TEXT,
|
|
|
|
start_time TEXT,
|
|
|
|
nas TEXT,
|
|
|
|
hs20_t_c_filtering BOOLEAN,
|
|
|
|
waiting_coa_ack BOOLEAN,
|
|
|
|
coa_ack_received BOOLEAN
|
|
|
|
);
|
2018-09-15 01:53:49 +02:00
|
|
|
|
|
|
|
CREATE TABLE cert_enroll(
|
|
|
|
mac_addr TEXT PRIMARY KEY,
|
|
|
|
user TEXT,
|
|
|
|
realm TEXT,
|
|
|
|
serialnum TEXT
|
|
|
|
);
|
2018-12-14 14:58:13 +01:00
|
|
|
|
|
|
|
CREATE TABLE sim_provisioning(
|
|
|
|
mobile_identifier_hash TEXT PRIMARY KEY,
|
|
|
|
imsi TEXT,
|
|
|
|
mac_addr TEXT,
|
|
|
|
eap_method TEXT,
|
|
|
|
timestamp TEXT
|
|
|
|
);
|