diff options
author | M <m@lfurio.us> | 2015-11-20 19:32:37 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-11-20 19:32:37 -0500 |
commit | dfb9f8868efab7ccc5440c537c12424e72af3a4a (patch) | |
tree | 8a0a7ca5eec21926df4e02e27645479b52773ab4 /schema.sql | |
parent | fbb58c515142d55de72ae61b504596bea97d0f67 (diff) | |
download | scrott-dfb9f8868efab7ccc5440c537c12424e72af3a4a.tar.gz scrott-dfb9f8868efab7ccc5440c537c12424e72af3a4a.zip |
+ Defined schema for extern-user object
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -46,6 +46,7 @@ CREATE TABLE `object` ( `timeUpdated` datetime NOT NULL, `type` enum( 'user', + 'extern-user', 'group', 'pad', 'stage', @@ -74,6 +75,18 @@ CREATE TABLE `user` ( `alias` varchar(50) DEFAULT NULL, `email` varchar(50) DEFAULT NULL, `emailConf` int(10) unsigned NOT NULL DEFAULT 0, + `emailConfKey` varchar(64) NOT NULL, + PRIMARY KEY (`guid`) +); + +/* Extern-user objects - special attributes */ +/* Notice: these objects are contructred on portal pages or if a scrott user gives ownership of an object to an external user. */ +/* Notice: This table should be searched for addresses while creating a new normal user object. If in the event the users email address exists here, it should be promoted to a full user account */ +DROP TABLE IF EXISTS `extern-user`; +CREATE TABLE `extern-user` ( + `guid` varchar(10) NOT NULL, + `email` varchar(50) NOT NULL, + `emailConfKey` varchar(64) NOT NULL, PRIMARY KEY (`guid`) ); |