Move to sqlx migrations

This commit is contained in:
2024-02-07 21:02:27 +00:00
parent 5e8890fef4
commit 97688b49c9
3 changed files with 31 additions and 25 deletions
+21
View File
@@ -0,0 +1,21 @@
CREATE TABLE IF NOT EXISTS place
(
place_id UUID PRIMARY KEY not null,
json JSONB NOT NULL
);
CREATE TABLE IF NOT EXISTS timeline_item
(
item_id UUID PRIMARY KEY not null,
json JSONB NOT NULL,
place_id UUID,
end_date TIMESTAMP WITH TIME ZONE NOT NULL,
foreign key (place_id) references place (place_id)
);
CREATE TABLE IF NOT EXISTS raw_files
(
date TEXT PRIMARY KEY not null,
sha256 TEXT not null,
json JSONB NOT NULL
)