photosite/sql/setup.sql

26 lines
489 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,
2024-12-11 02:38:41 +00:00
description TEXT,
2024-12-03 04:09:32 +00:00
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-09 20:15:27 +00:00
latitude REAL,
longitude REAL,
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-09 20:15:27 +00:00
CREATE TABLE IF NOT EXISTS geocode (
location TEXT PRIMARY KEY,
latitude REAL,
longitude REAL
);