Skip to content

Commit

Permalink
Replace rooms with PostgreSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
theNatePi authored Dec 4, 2024
1 parent a0aa37b commit ba15095
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions server/db/schema/rooms.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CREATE TABLE rooms (
id INT PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('room_id_seq'),
name VARCHAR(256) NOT NULL,
description VARCHAR(256),
rate NUMERIC NOT NULL
);
CREATE TABLE IF NOT EXISTS public.rooms
(
id integer NOT NULL GENERATED ALWAYS AS IDENTITY ( INCREMENT 1 START 1 MINVALUE 1 MAXVALUE 2147483647 CACHE 1 ),
name character varying(256) COLLATE pg_catalog."default" NOT NULL,
description character varying(256) COLLATE pg_catalog."default",
rate numeric NOT NULL,
CONSTRAINT room_pkey PRIMARY KEY (id)
)

0 comments on commit ba15095

Please sign in to comment.