]>
Commit | Line | Data |
---|---|---|
52053519 GJ |
1 | CREATE TABLE files |
2 | ( | |
a639591f | 3 | id INT PRIMARY key GENERATED BY DEFAULT AS identity, |
52053519 GJ |
4 | hash text NOT NULL, |
5 | originalname text NOT NULL, | |
6 | filename text NOT NULL, | |
7 | size integer not null, | |
8 | date integer not null, | |
9 | ip text null | |
10 | ); | |
11 | ||
12 | CREATE TABLE blacklist | |
13 | ( | |
a639591f | 14 | id INT PRIMARY key GENERATED BY DEFAULT AS identity, |
52053519 | 15 | hash text NOT NULL, |
9ec728b4 GJ |
16 | originalname text NULL, |
17 | time integer null, | |
52053519 GJ |
18 | ip text null |
19 | ); | |
20 | ||
21 | CREATE TABLE ratelimit | |
22 | ( | |
a639591f | 23 | id INT PRIMARY key GENERATED BY DEFAULT AS identity, |
52053519 GJ |
24 | iphash text NOT NULL, |
25 | files integer not null, | |
26 | time integer not null | |
b715f164 GJ |
27 | ); |
28 | ||
29 | CREATE TABLE accounts | |
30 | ( | |
a639591f | 31 | id INT PRIMARY key GENERATED BY DEFAULT AS identity, |
b715f164 | 32 | email text NOT NULL, |
a639591f GJ |
33 | pass text not null, |
34 | level integer not null | |
52053519 | 35 | ); |