Skip to content
Snippets Groups Projects
Verified Commit 0436c1fd authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Update schema

parent 2f292f0d
No related branches found
No related tags found
No related merge requests found
...@@ -45,3 +45,13 @@ create table "references" ( ...@@ -45,3 +45,13 @@ create table "references" (
source text, source text,
target text target text
); );
CREATE TABLE public.groups (
channel int NOT NULL,
nick text NOT NULL,
"group" text NOT NULL,
CONSTRAINT groups_channel_nick_pk PRIMARY KEY (channel, nick),
CONSTRAINT groups_channels_id_fk FOREIGN KEY (channel) REFERENCES channels (id) ON DELETE CASCADE ON UPDATE CASCADE
);
CREATE INDEX groups_channel_nick_index
ON public.groups (channel, nick);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment