summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/schema.sql b/schema.sql
new file mode 100644
index 0000000..1720bfc
--- /dev/null
+++ b/schema.sql
@@ -0,0 +1,8 @@
+CREATE TABLE redirectauth_mappings (
+ local_id int NOT NULL UNIQUE,
+ external_id varchar(255) NOT NULL UNIQUE,
+ PRIMARY KEY (local_id, external_id)
+);
+-- We don't define a foreign key from local_id to the user table because doing so
+-- is difficult in a manner that works with both MySQL and PostgreSQL, so we'd
+-- have to maintain this schema in multiple dialects, which just isn't worth it.