Implement organized image upload functionality: Added category, room, and location target fields for image uploads

This commit is contained in:
2026-06-27 21:12:07 -05:00
parent 69cb389ecf
commit 52f6668f02
2 changed files with 74 additions and 13 deletions
+2
View File
@@ -20,6 +20,8 @@ export async function initSchema() {
id SERIAL PRIMARY KEY,
filename VARCHAR(255) NOT NULL,
data TEXT NOT NULL,
category VARCHAR(100) DEFAULT 'other',
room_id INTEGER REFERENCES rooms(id) ON DELETE SET NULL,
uploaded_at TIMESTAMP DEFAULT NOW()
);
`);