feat: simple records schema
This commit is contained in:
parent
eeac5f2575
commit
a831d4fc61
2 changed files with 10 additions and 0 deletions
2
migrations/20241115182043_init.down.sql
Normal file
2
migrations/20241115182043_init.down.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
-- Add down migration script here
|
||||||
|
DROP TABLE IF EXISTS records;
|
8
migrations/20241115182043_init.up.sql
Normal file
8
migrations/20241115182043_init.up.sql
Normal 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;
|
Loading…
Reference in a new issue