Added compulsory tags in db table

This commit is contained in:
Barf-Vader
2025-06-09 14:53:56 +01:00
parent 769a20607b
commit f6f09c8492
2 changed files with 5 additions and 1 deletions

View File

@@ -35,7 +35,7 @@
- `npx supabase stop` will stop the local dev database (data is persisted unless you do a reset). - `npx supabase stop` will stop the local dev database (data is persisted unless you do a reset).
- `npx supabase db push --local` will apply migrations to your local dev database. Useful if someone else has made new SQL migrations. - `npx supabase db push --local` will apply migrations to your local dev database. Useful if someone else has made new SQL migrations.
- `npx supabase db reset` will completely reset the local dev database. - `npx supabase db reset` will completely reset the local dev database.
- `npx supabase diff db -f <migration-name>` will generate a new migration file based on the current state of the database. This isn't 100% foolproof, so don't use it blindly. - `npx supabase db diff -f <migration-name>` will generate a new migration file based on the current state of the database. This isn't 100% foolproof, so don't use it blindly.
### What's where? ### What's where?

View File

@@ -13,6 +13,10 @@ CREATE TABLE study_spaces (
location text, location text,
building_location text, building_location text,
tags text[] NOT NULL DEFAULT array[]::text[], tags text[] NOT NULL DEFAULT array[]::text[],
timing text NOT NULL,
volume text NOT NULL,
wifi text NOT NULL,
power text NOT NULL,
created_at timestamp with time zone DEFAULT now(), created_at timestamp with time zone DEFAULT now(),
updated_at timestamp with time zone DEFAULT now() updated_at timestamp with time zone DEFAULT now()
); );