nyazoom/migrations/20241115182043_init.up.sql

9 lines
306 B
MySQL
Raw Normal View History

2024-11-15 18:54:01 +00:00
-- Add up migration script here
CREATE TABLE IF NOT EXISTS records (
id INTEGER NOT NULL PRIMARY KEY,
uploaded TEXT NOT NULL DEFAULT (datetime('now')),
2024-11-15 18:54:01 +00:00
file_path TEXT NOT NULL,
downloads INTEGER NOT NULL DEFAULT 0,
max_downloads INTEGER NOT NULL
) STRICT;