diff options
author | M <m@lfurio.us> | 2015-11-18 21:49:48 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-11-18 21:49:48 -0500 |
commit | c94008be7dad72d4fee27aa0e39d5c286d22c292 (patch) | |
tree | 2504d29522a4bf56aafb8d0da308179d93bde394 /schema.sql | |
parent | 890edc0f3f847ec2ef75bc260aff60a11f4cbeb9 (diff) | |
download | scrott-c94008be7dad72d4fee27aa0e39d5c286d22c292.tar.gz scrott-c94008be7dad72d4fee27aa0e39d5c286d22c292.zip |
+ Defined membership association table
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -34,6 +34,14 @@ USE `db_scrott`; * Permissions can be overridden down-stream, but permissions will cascade otherwise. */ +DROP TABLE IF EXISTS `member`; +CREATE TABLE `member` ( + `object` varchar(10) NOT NULL, + `member` varchar(10) NOT NULL, + + PRIMARY KEY (`object`,`member`) +); + DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, @@ -60,4 +68,3 @@ CREATE TABLE `group` ( `owner` varchar(10) NOT NULL, `name` varchar(50) NOT NULL, /* TODO -- wip */ - /* TODO -- remember members table */ |