diff options
author | M <m@lfurio.us> | 2015-11-20 21:34:29 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-11-20 21:34:29 -0500 |
commit | 6819f27ab74011ff13bdd4f156a09a4372269d34 (patch) | |
tree | 2826e985b2c9ae5f0649ba2c061e30259b8e36c9 /schema.sql | |
parent | dfb9f8868efab7ccc5440c537c12424e72af3a4a (diff) | |
download | scrott-6819f27ab74011ff13bdd4f156a09a4372269d34.tar.gz scrott-6819f27ab74011ff13bdd4f156a09a4372269d34.zip |
+ Defined schema for message table
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -50,7 +50,8 @@ CREATE TABLE `object` ( 'group', 'pad', 'stage', - 'issue' + 'issue', + 'message' ) NOT NULL, PRIMARY KEY (`guid`) ); @@ -121,3 +122,14 @@ CREATE TABLE `issue` ( `desc` text DEFAULT NULL, PRIMARY KEY (`guid`) ); + +/* Message objects - special attributes */ +/* Notice: These are discussion messages, comments on issues, and also private messages sent directly to users */ +DROP TABLE IF EXISTS `message`; +CREATE TABLE `message` ( + `guid` varchar(10) NOT NULL, + `author` varchar(10) NOT NULL, + `unread` int(10) unsigned NOT NULL DEFAULT 1, + `message` text DEFAULT NULL, + PRIMARY KEY (`guid`) +); |