diff options
author | Mathias Magnusson <mathias@magnusson.space> | 2025-08-18 23:50:03 +0200 |
---|---|---|
committer | Mathias Magnusson <mathias@magnusson.space> | 2025-08-18 23:50:03 +0200 |
commit | 5e3a28bafde748367a0566d739e1c098af2c0a0f (patch) | |
tree | ee4cbc52b044bd2f42391825a01d8386741f01fa /migrations/0003_empty_matthew_murdock.sql | |
parent | 3262d631fd1be55a5c85ede08d92a35c5fb7d2c4 (diff) | |
download | uneven-master.tar.gz |
Group <-> User membershipsmaster
Diffstat (limited to 'migrations/0003_empty_matthew_murdock.sql')
-rw-r--r-- | migrations/0003_empty_matthew_murdock.sql | 7 |
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 +); |