photosite/sql/setup.sql

22 lines
422 B
MySQL
Raw Normal View History

2024-12-03 04:09:32 +00:00
CREATE TABLE IF NOT EXISTS photos (
id TEXT PRIMARY KEY,
2024-12-03 04:09:32 +00:00
name TEXT UNIQUE,
original TEXT UNIQUE,
hash TEXT UNIQUE,
width INTEGER,
height INTEGER,
format TEXT,
2024-12-03 04:09:32 +00:00
filmstock TEXT,
location TEXT,
2024-12-03 04:09:32 +00:00
discovered INTEGER,
2024-01-08 20:38:27 +00:00
created INTEGER,
updated INTEGER,
bsky INTEGER DEFAULT 0,
2024-12-03 04:09:32 +00:00
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
)