summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-10-09 18:56:04 +0200
committerMartin Fischer <martin@push-f.com>2022-10-13 00:34:59 +0200
commit4a612d49e20543cdb1094134a0ddb7f804135594 (patch)
tree3aa312785f0520869d6b849cdf29ccb2dbfe532f /schema.sql
initial commit
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.