diff options
author | M <m@lfurio.us> | 2015-11-19 20:35:32 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-11-19 20:35:32 -0500 |
commit | 4cea4b5494c6660d03614d8ea59214f1ad924de3 (patch) | |
tree | f434fad1308322a1ac34a064a25e1fbd1d48c60c /schema.sql | |
parent | 6c660e97ebc4b3f9395c3d8489accb8fce103572 (diff) | |
download | scrott-4cea4b5494c6660d03614d8ea59214f1ad924de3.tar.gz scrott-4cea4b5494c6660d03614d8ea59214f1ad924de3.zip |
* Refactored pad table into new core data model
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -44,7 +44,8 @@ CREATE TABLE `object` ( `name` varchar(50) NOT NULL, `type` enum( 'user', - 'group' + 'group', + 'pad' ) NOT NULL, PRIMARY KEY (`guid`) ); @@ -69,21 +70,18 @@ CREATE TABLE `user` ( /* object type 'group' has no unique attributes */ - - -/* TODO -- WIP FROM HERE */ - +/* Pad objects - special attributes */ DROP TABLE IF EXISTS `pad`; CREATE TABLE `pad` ( - `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, - - PRIMARY KEY (`id`) + `guid` varchar(10) NOT NULL, + `stage` varchar(10) NOT NULL, + PRIMARY KEY (`guid`) ); + + +/* TODO -- WIP FROM HERE */ + DROP TABLE IF EXISTS `stage`; CREATE TABLE `stage` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, |