summaryrefslogtreecommitdiff
path: root/migrations/0003_empty_matthew_murdock.sql
diff options
context:
space:
mode:
Diffstat (limited to 'migrations/0003_empty_matthew_murdock.sql')
-rw-r--r--migrations/0003_empty_matthew_murdock.sql7
1 files changed, 7 insertions, 0 deletions
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
+);