feat: Added avaliable tags and tag column to table
Coauthored-by: gk1623
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user