summaryrefslogtreecommitdiffstats
path: root/hs20/server/sql.txt
blob: 660953823717d74069883fb0d771066d99aa422f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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,
	cert_pem TEXT
);

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,
	cert_pem TEXT
);

CREATE TABLE wildcards(
	identity TEXT PRIMARY KEY,
	methods TEXT
);