This commit is contained in:
Q
2023-08-19 11:35:11 +03:00
commit aa6a1d2373
16 changed files with 797 additions and 0 deletions

13
code/init_db.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
cat <<'EOF' | sqlite3 "$1"
CREATE TABLE IF NOT EXISTS files (
token text PRIMARY KEY,
name text NOT NULL,
added integer NOT NULL,
expires integer NOT NULL,
downloads integer NOT NULL,
max_downloads integer NOT NULL
);
EOF