shareable upload tokens

This commit is contained in:
Q
2023-08-28 22:13:22 +03:00
parent 4629bf2976
commit 3b69ce7ae1
6 changed files with 145 additions and 8 deletions

View File

@@ -12,3 +12,11 @@ CREATE TABLE IF NOT EXISTS files (
passhash text
);
EOF
cat <<'EOF' | sqlite3 "$1"
CREATE TABLE IF NOT EXISTS upload_tokens (
token text PRIMARY KEY,
added integer NOT NULL,
expires integer NOT NULL
);
EOF