Skip to content

Commit

Permalink
Update init-db.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
bilimig committed May 8, 2024
1 parent 4a4087b commit 475690a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Database/init-db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS events.participant (
"id" SERIAL PRIMARY KEY,
"event_id" integer NOT NULL,
"user_id" integer NOT NULL,
"status_id" integer NOT NULL
"status_id" integer NOT NULL,
UNIQUE ("event_id", "user_id")
);

Expand Down Expand Up @@ -59,7 +59,7 @@ CREATE TABLE IF NOT EXISTS users.user (
CREATE TABLE IF NOT EXISTS events.parameter (
"id" SERIAL PRIMARY KEY,
"key" text NOT NULL CONSTRAINT events_patameter_key_maxlength CHECK (LENGTH("key") <= 32),
"value" text NOT NULL CONSTRAINT events_patameter_value_maxlength CHECK (LENGTH("value") <= 64)
"value" text NOT NULL CONSTRAINT events_patameter_value_maxlength CHECK (LENGTH("value") <= 64),
UNIQUE("key", "value")
);

Expand Down

0 comments on commit 475690a

Please sign in to comment.