diff options
author | M <m@lfurio.us> | 2015-11-19 21:08:33 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-11-19 21:08:33 -0500 |
commit | 7ed08522b6b93f39c8f7ca4074e0cd66bc28d2f5 (patch) | |
tree | 785644408f748321fe190189fdd3905a60bc7454 /schema.sql | |
parent | 4cea4b5494c6660d03614d8ea59214f1ad924de3 (diff) | |
download | scrott-7ed08522b6b93f39c8f7ca4074e0cd66bc28d2f5.tar.gz scrott-7ed08522b6b93f39c8f7ca4074e0cd66bc28d2f5.zip |
* Refactored stage table into new data model
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 22 |
1 files changed, 7 insertions, 15 deletions
@@ -45,7 +45,8 @@ CREATE TABLE `object` ( `type` enum( 'user', 'group', - 'pad' + 'pad', + 'stage' ) NOT NULL, PRIMARY KEY (`guid`) ); @@ -74,23 +75,14 @@ CREATE TABLE `user` ( DROP TABLE IF EXISTS `pad`; CREATE TABLE `pad` ( `guid` varchar(10) NOT NULL, - `stage` varchar(10) NOT NULL, + `stage` varchar(10) DEFAULT NULL, PRIMARY KEY (`guid`) ); - - -/* TODO -- WIP FROM HERE */ - +/* Stage objects - special attributes */ DROP TABLE IF EXISTS `stage`; CREATE TABLE `stage` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `guid` varchar(10) NOT NULL, - `owner` varchar(10) NOT NULL, - `perms` int(10) unsigned NOT NULL, - `name` varchar(50) NOT NULL, - `parent` varchar(10) NOT NULL, - /* TODO -- wip */ - - PRIMARY KEY (`id`) + `guid` varchar(10) NOT NULL, + `stage` varchar(10) DEFAULT NULL, + PRIMARY KEY (`guid`) ); |