nyazoom/migrations/20241115182043_init.up.sql
2024-11-15 22:39:30 -08:00

8 lines
306 B
SQL

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