2024-12-03 04:09:32 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS photos (
|
2024-12-08 21:51:53 +00:00
|
|
|
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,
|
2024-12-08 21:51:53 +00:00
|
|
|
format TEXT,
|
2024-12-03 04:09:32 +00:00
|
|
|
filmstock TEXT,
|
2024-12-05 19:55:12 +00:00
|
|
|
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,
|
2024-12-05 19:55:12 +00:00
|
|
|
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
|
|
|
|
);
|