photosite/sql/setup.sql

12 lines
209 B
SQL

CREATE TABLE IF NOT EXISTS photos {
id TEXT PRIMARY KEY,
created INTEGER,
updated INTEGER,
deleted INTEGER DEFAULT 0
}
CREATE TABLE IF NOT EXISTS version {
id TEXT PRIMARY KEY,
updated INTEGER UNIQUE
}