You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
453 B
20 lines
453 B
|
|
CREATE TABLE image (
|
|
time TEXT NOT NULL, -- ISO 8601 @ UTC, eg 2019-01-01T00:00:00Z
|
|
did TEXT NOT NULL,
|
|
local_file TEXT NOT NULL,
|
|
size INTEGER NOT NULL,
|
|
final_file TEXT NOT NULL,
|
|
url TEXT NOT NULL
|
|
);
|
|
|
|
CREATE INDEX image_time ON image(time);
|
|
CREATE INDEX image_did ON image(did);
|
|
CREATE INDEX image_final_file ON image(final_file);
|
|
|
|
CREATE TABLE user (
|
|
did TEXT NOT NULL,
|
|
per_week INTEGER NOT NULL
|
|
);
|
|
|
|
CREATE INDEX user_did ON user(did);
|
|
|