made some basic structure changes and made some tests too
Test Workflow / test-and-lint (pull_request) Failing after 23s

This commit is contained in:
2026-05-15 22:32:39 -07:00
parent fa6d6a97ba
commit 6bac3e4e74
18 changed files with 139 additions and 101 deletions
+22
View File
@@ -0,0 +1,22 @@
export const up = (pgm) => {
pgm.sql(`
CREATE TABLE sets (
id UUID PRIMARY KEY,
collection_id UUID NOT NULL,
name TEXT NOT NULL,
location_id UUID,
image_id UUID,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
FOREIGN KEY (collection_id) REFERENCES collections(id),
FOREIGN KEY (location_id) REFERENCES locations(id),
FOREIGN KEY (image_id) REFERENCES images(id)
);
`)
}
export const down = (pgm) => {
pgm.sql(`
DROP TABLE sets;
`)
}