-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.sql
37 lines (33 loc) · 888 Bytes
/
schema.sql
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
create table antrag (
id integer primary key autoincrement,
msg_id string unique,
subject string,
ub string, -- unique
starter string,
public boolean
);
create table votes (
id integer primary key autoincrement,
antrag integer references antrag,
vorstand integer references vorstand,
text string,
sig string,
state integer,
verified boolean,
unique (vorstand, antrag)
);
create table vorstand (
id integer primary key autoincrement,
name string,
short string,
email string,
pass string,
pubkey string
);
create table msgs (
id integer primary key autoincrement,
msg_id string unique,
thread_id string
);
insert into vorstand (name, short, email, pass, pubkey) VALUES
( 'a', 'b', '[email protected]', '0363f1a98b0c507a237977267358886724194e58198ae5efc58c659238ee8fc3', 'key'),