Fix image handling to support category, room_id, and location_target fields

This commit is contained in:
2026-06-28 06:35:38 -05:00
parent 6b13a35fbe
commit a47f54d22b
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -22,6 +22,7 @@ export async function initSchema() {
data TEXT NOT NULL,
category VARCHAR(100) DEFAULT 'other',
room_id INTEGER REFERENCES rooms(id) ON DELETE SET NULL,
location_target VARCHAR(100) DEFAULT 'gallery',
uploaded_at TIMESTAMP DEFAULT NOW()
);
`);