first version of postgres backend
[quassel.git] / src / core / SQL / PostgreSQL / 14 / setup_030_identity_nick.sql
diff --git a/src/core/SQL/PostgreSQL/14/setup_030_identity_nick.sql b/src/core/SQL/PostgreSQL/14/setup_030_identity_nick.sql
new file mode 100644 (file)
index 0000000..65fb5ec
--- /dev/null
@@ -0,0 +1,6 @@
+CREATE TABLE identity_nick (
+       nickid serial PRIMARY KEY,
+       identityid integer NOT NULL REFERENCES identity (identityid) ON DELETE CASCADE,
+       nick varchar(64) NOT NULL,
+       UNIQUE (identityid, nick)
+)