From 5e3a28bafde748367a0566d739e1c098af2c0a0f Mon Sep 17 00:00:00 2001
From: Mathias Magnusson <mathias@magnusson.space>
Date: Mon, 18 Aug 2025 23:50:03 +0200
Subject: Group <-> User memberships

---
 migrations/0003_empty_matthew_murdock.sql | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 migrations/0003_empty_matthew_murdock.sql

(limited to 'migrations/0003_empty_matthew_murdock.sql')

diff --git a/migrations/0003_empty_matthew_murdock.sql b/migrations/0003_empty_matthew_murdock.sql
new file mode 100644
index 0000000..b626d41
--- /dev/null
+++ b/migrations/0003_empty_matthew_murdock.sql
@@ -0,0 +1,7 @@
+CREATE TABLE `users_groups` (
+	`user_id` integer,
+	`group_id` integer,
+	PRIMARY KEY(`user_id`, `group_id`),
+	FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action,
+	FOREIGN KEY (`group_id`) REFERENCES `groups`(`id`) ON UPDATE no action ON DELETE no action
+);
-- 
cgit v1.2.3

