photosite/sql/setup.sql

19 lines
372 B
MySQL
Raw Normal View History

2024-12-03 04:09:32 +00:00
CREATE TABLE IF NOT EXISTS photos (
name TEXT UNIQUE,
original TEXT UNIQUE,
hash TEXT UNIQUE,
width INTEGER,
height INTEGER,
filmstock TEXT,
discovered INTEGER,
2024-01-08 20:38:27 +00:00
created INTEGER,
updated INTEGER,
2024-12-03 04:09:32 +00:00
posted INTEGER DEFAULT 0,
score INTEGER DEFAULT 0,
2024-01-08 20:38:27 +00:00
deleted INTEGER DEFAULT 0
2024-12-03 04:09:32 +00:00
);
2024-01-06 05:25:07 +00:00
2024-12-03 04:09:32 +00:00
CREATE TABLE IF NOT EXISTS version (
2024-01-06 05:25:07 +00:00
id TEXT PRIMARY KEY,
updated INTEGER UNIQUE
2024-12-03 04:09:32 +00:00
)