feat: simple records schema

This commit is contained in:
Zynh Ludwig 2024-11-15 10:54:01 -08:00
parent eeac5f2575
commit a831d4fc61
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,2 @@
-- Add down migration script here
DROP TABLE IF EXISTS records;

View file

@ -0,0 +1,8 @@
-- Add up migration script here
CREATE TABLE IF NOT EXISTS records (
id INTEGER PRIMARY KEY,
uploaded TEXT NOT NULL,
file_path TEXT NOT NULL,
downloads INTEGER NOT NULL DEFAULT 0,
max_downloads INTEGER NOT NULL
) STRICT;