Skip to content

Commit

Permalink
chore: add an example for using double array in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Nov 15, 2024
1 parent 09cfd03 commit ca400a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions psql-tags/tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ CREATE TABLE IF NOT EXISTS tags (
CREATE TABLE IF NOT EXISTS rooms (
id varchar PRIMARY KEY,
tag_ids varchar[] DEFAULT '{}' ::varchar[] NOT NULL,
coordinates double precision[] NOT NULL,
created_at timestamp NOT NULL DEFAULT now(),
updated_at timestamp NOT NULL DEFAULT now()
);
Expand Down

0 comments on commit ca400a3

Please sign in to comment.