summaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
authorM <m@lfurio.us>2015-11-18 21:49:48 -0500
committerM <m@lfurio.us>2015-11-18 21:49:48 -0500
commitc94008be7dad72d4fee27aa0e39d5c286d22c292 (patch)
tree2504d29522a4bf56aafb8d0da308179d93bde394 /schema.sql
parent890edc0f3f847ec2ef75bc260aff60a11f4cbeb9 (diff)
downloadscrott-c94008be7dad72d4fee27aa0e39d5c286d22c292.tar.gz
scrott-c94008be7dad72d4fee27aa0e39d5c286d22c292.zip
+ Defined membership association table
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql9
1 files changed, 8 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index d586c35..f29948f 100644
--- a/schema.sql
+++ b/schema.sql
@@ -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 */