2020-11-18 11:54:47 +00:00
|
|
|
PRAGMA synchronous = OFF;
|
|
|
|
PRAGMA journal_mode = MEMORY;
|
|
|
|
BEGIN TRANSACTION;
|
|
|
|
CREATE TABLE `files` (
|
|
|
|
`id` integer NOT NULL PRIMARY KEY AUTOINCREMENT
|
|
|
|
, `hash` char(40) default NULL
|
|
|
|
, `originalname` varchar(255) default NULL
|
|
|
|
, `filename` varchar(30) default NULL
|
|
|
|
, `size` integer default NULL
|
|
|
|
, `date` integer default NULL
|
2021-05-02 12:38:09 +00:00
|
|
|
, `ip` char(15) default NULL
|
2020-11-18 11:54:47 +00:00
|
|
|
);
|
2021-07-04 11:19:35 +00:00
|
|
|
CREATE TABLE `accounts` (
|
|
|
|
`id` integer NOT NULL PRIMARY KEY AUTOINCREMENT
|
|
|
|
, `email` varchar(255) default NULL
|
|
|
|
, `pass` varchar(255) default NULL
|
|
|
|
, `level` integer default NULL
|
|
|
|
);
|
|
|
|
CREATE TABLE `blacklist` (
|
|
|
|
`id` integer NOT NULL PRIMARY KEY AUTOINCREMENT
|
|
|
|
, `hash` char(40) default NULL
|
|
|
|
, `originalname` varchar(255) default NULL
|
|
|
|
, `time` integer default NULL
|
|
|
|
);
|
2020-11-18 11:54:47 +00:00
|
|
|
END TRANSACTION;
|