hoard/migrations_postgres/0001_init.sql

15 lines
351 B
MySQL
Raw Permalink Normal View History

2024-12-08 16:59:30 +00:00
CREATE TABLE IF NOT EXISTS urls (
2024-12-08 18:16:45 +00:00
id SERIAL PRIMARY KEY,
2024-12-08 16:59:30 +00:00
url TEXT NOT NULL,
timestamp TEXT NOT NULL
);
CREATE TABLE IF NOT EXISTS item_log (
2024-12-08 18:16:45 +00:00
id SERIAL PRIMARY KEY,
2024-12-08 16:59:30 +00:00
module TEXT NOT NULL,
name TEXT NOT NULL,
url TEXT NOT NULL,
timestamp TEXT NOT NULL,
CONSTRAINT unique_module_name_url UNIQUE (module, name, url)
);