CREATE TABLE files
(
- id INT GENERATED BY DEFAULT AS identity,
+ id INT PRIMARY key GENERATED BY DEFAULT AS identity,
hash text NOT NULL,
originalname text NOT NULL,
filename text NOT NULL,
CREATE TABLE blacklist
(
- id INT GENERATED BY DEFAULT AS identity,
+ id INT PRIMARY key GENERATED BY DEFAULT AS identity,
hash text NOT NULL,
originalname text NULL,
time integer null,
CREATE TABLE ratelimit
(
- id INT GENERATED BY DEFAULT AS identity,
+ id INT PRIMARY key GENERATED BY DEFAULT AS identity,
iphash text NOT NULL,
files integer not null,
time integer not null
CREATE TABLE accounts
(
- id INT GENERATED BY DEFAULT AS identity,
+ id INT PRIMARY key GENERATED BY DEFAULT AS identity,
email text NOT NULL,
- pass text not null,
- level integer not null
+ pass text not null,
+ level integer not null
);
\ No newline at end of file