Working base server with migrations and build steps ironed out (#1)

Reviewed-on: #1
Co-authored-by: Joseph Nelson <joseph.nelson4456@gmail.com>
Co-committed-by: Joseph Nelson <joseph.nelson4456@gmail.com>
This commit was merged in pull request #1.
This commit is contained in:
2026-05-13 23:16:20 -07:00
committed by joseph.nelson4456
parent 12922c35bf
commit ce914f91fd
16 changed files with 323 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
export const up = (pgm) => {
pgm.sql(`
CREATE TABLE items (
id UUID PRIMARY KEY,
collection_id UUID,
image_id UUID,
productId TEXT,
name TEXT,
cleanName TEXT,
extCardText TEXT,
marketPrice TEXT,
extRarity TEXT,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
FOREIGN KEY (collection_id) REFERENCES collections(id),
FOREIGN KEY (image_id) REFERENCES images(id)
);
`)
}
export const down = (pgm) => {
pgm.sql(`
DROP TABLE items;
`)
}