mirror of
https://github.com/nokonoko/Uguu.git
synced 2024-01-06 13:35:15 +00:00
Update postgres_schema.sql
This commit is contained in:
parent
9ec728b422
commit
a639591fe8
@ -1,6 +1,6 @@
|
|||||||
CREATE TABLE files
|
CREATE TABLE files
|
||||||
(
|
(
|
||||||
id INT GENERATED BY DEFAULT AS identity,
|
id INT PRIMARY key GENERATED BY DEFAULT AS identity,
|
||||||
hash text NOT NULL,
|
hash text NOT NULL,
|
||||||
originalname text NOT NULL,
|
originalname text NOT NULL,
|
||||||
filename text NOT NULL,
|
filename text NOT NULL,
|
||||||
@ -11,7 +11,7 @@ CREATE TABLE files
|
|||||||
|
|
||||||
CREATE TABLE blacklist
|
CREATE TABLE blacklist
|
||||||
(
|
(
|
||||||
id INT GENERATED BY DEFAULT AS identity,
|
id INT PRIMARY key GENERATED BY DEFAULT AS identity,
|
||||||
hash text NOT NULL,
|
hash text NOT NULL,
|
||||||
originalname text NULL,
|
originalname text NULL,
|
||||||
time integer null,
|
time integer null,
|
||||||
@ -20,7 +20,7 @@ CREATE TABLE blacklist
|
|||||||
|
|
||||||
CREATE TABLE ratelimit
|
CREATE TABLE ratelimit
|
||||||
(
|
(
|
||||||
id INT GENERATED BY DEFAULT AS identity,
|
id INT PRIMARY key GENERATED BY DEFAULT AS identity,
|
||||||
iphash text NOT NULL,
|
iphash text NOT NULL,
|
||||||
files integer not null,
|
files integer not null,
|
||||||
time integer not null
|
time integer not null
|
||||||
@ -28,8 +28,8 @@ CREATE TABLE ratelimit
|
|||||||
|
|
||||||
CREATE TABLE accounts
|
CREATE TABLE accounts
|
||||||
(
|
(
|
||||||
id INT GENERATED BY DEFAULT AS identity,
|
id INT PRIMARY key GENERATED BY DEFAULT AS identity,
|
||||||
email text NOT NULL,
|
email text NOT NULL,
|
||||||
pass text not null,
|
pass text not null,
|
||||||
level integer not null
|
level integer not null
|
||||||
);
|
);
|
Loading…
Reference in New Issue
Block a user