feat: Added avaliable tags and tag column to table

Coauthored-by: gk1623
This commit is contained in:
Barf-Vader
2025-06-05 17:38:49 +01:00
parent 6e45851892
commit 0e074e9301
2 changed files with 24 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ CREATE TABLE study_spaces (
-- Location within building, e.g., "Room 101"
location text,
building_location text,
tags text[] NOT NULL DEFAULT array[]::text[],
created_at timestamp with time zone DEFAULT now(),
updated_at timestamp with time zone DEFAULT now()
);
@@ -24,6 +25,7 @@ CREATE TABLE study_space_images (
PRIMARY KEY (study_space_id, image_path)
);
-- Triggers
CREATE TRIGGER study_spaces_updated_at
AFTER UPDATE ON study_spaces