3 CREATE TABLE conference (
4 id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
5 title VARCHAR NOT NULL,
9 start INTEGER NOT NULL, -- timezone-less timestamp (Unix Epoch)
10 end INTEGER NOT NULL, -- timezone-less timestamp (Unix Epoch)
12 timeslot_duration INTEGER,
13 utc_offset INTEGER DEFAULT NULL, -- if known, conference UTC offset in seconds (e.g. CET = +3600)
14 display_time_shift INTEGER DEFAULT NULL, -- if not null, add number in seconds to conference times when showing times
15 active INTEGER DEFAULT 0,
20 id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
21 xid_conference INTEGER NOT NULL REFERENCES conference(id),
22 name VARCHAR NOT NULL,
23 UNIQUE (xid_conference, name)
27 id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
28 xid_conference INTEGER NOT NULL REFERENCES conference(id),
29 name VARCHAR NOT NULL,
31 UNIQUE (xid_conference, name)
36 xid_conference INTEGER NOT NULL REFERENCES conference(id),
37 name VARCHAR NOT NULL,
38 PRIMARY KEY (id, xid_conference)
42 xid_conference INTEGER NOT NULL REFERENCES conference(id),
44 start INTEGER NOT NULL, -- timezone-less timestamp (Unix Epoch)
45 duration INTEGER NOT NULL, -- duration of the event in seconds
46 xid_track INTEGER NOT NULL REFERENCES track(id),
50 title VARCHAR NOT NULL,
54 favourite INTEGER DEFAULT 0, -- 0 ... no favourite, 1 ... strong favourite, 2 ... weak favourite/alternative to strong favourite
55 alarm INTEGER DEFAULT 0,
56 PRIMARY KEY (xid_conference, id)
59 CREATE TABLE event_person (
60 xid_conference INTEGER NOT NULL,
61 xid_event INTEGER NOT NULL,
62 xid_person INTEGER NOT NULL,
63 UNIQUE (xid_conference, xid_event, xid_person ) ON CONFLICT REPLACE,
64 FOREIGN KEY(xid_conference) REFERENCES conference(id),
65 FOREIGN KEY(xid_conference, xid_event) REFERENCES event(xid_conference, id),
66 FOREIGN KEY(xid_conference, xid_person) REFERENCES person(xid_conference, id)
69 CREATE TABLE event_room (
70 xid_conference INTEGER NOT NULL,
71 xid_event INTEGER NOT NULL,
72 xid_room INTEGER NOT NULL,
73 UNIQUE (xid_conference, xid_event, xid_room) ON CONFLICT REPLACE,
74 FOREIGN KEY(xid_conference) REFERENCES conference(id),
75 FOREIGN KEY(xid_conference, xid_event) REFERENCES event(xid_conference, id),
76 FOREIGN KEY(xid_conference, xid_room) REFERENCES room(xid_conference, id)
80 id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
81 xid_conference INTEGER NOT NULL,
82 xid_event INTEGER NOT NULL,
85 UNIQUE (xid_conference, xid_event , url) ON CONFLICT REPLACE,
86 FOREIGN KEY(xid_conference) REFERENCES conference(id),
87 FOREIGN KEY(xid_conference, xid_event) REFERENCES event(xid_conference, id)
90 PRAGMA user_version=2;