]> jfr.im git - uguu.git/blame_incremental - src/static/dbSchemas/postgres_schema.sql
Merge pull request #82 from zkm2/master
[uguu.git] / src / static / dbSchemas / postgres_schema.sql
... / ...
CommitLineData
1CREATE TABLE files
2(
3 id INT PRIMARY key GENERATED BY DEFAULT AS identity,
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
12CREATE TABLE blacklist
13(
14 id INT PRIMARY key GENERATED BY DEFAULT AS identity,
15 hash text NOT NULL,
16 originalname text NULL,
17 time integer null,
18 ip text null
19);
20
21CREATE TABLE ratelimit
22(
23 id INT PRIMARY key GENERATED BY DEFAULT AS identity,
24 iphash text NOT NULL,
25 files integer not null,
26 time integer not null
27);
28
29CREATE TABLE accounts
30(
31 id INT PRIMARY key GENERATED BY DEFAULT AS identity,
32 email text NOT NULL,
33 pass text not null,
34 level integer not null
35);