summaryrefslogtreecommitdiffstats
path: root/schema.sql
diff options
context:
space:
mode:
authorM <m@lfurio.us>2015-11-20 21:34:29 -0500
committerM <m@lfurio.us>2015-11-20 21:34:29 -0500
commit6819f27ab74011ff13bdd4f156a09a4372269d34 (patch)
tree2826e985b2c9ae5f0649ba2c061e30259b8e36c9 /schema.sql
parentdfb9f8868efab7ccc5440c537c12424e72af3a4a (diff)
downloadscrott-6819f27ab74011ff13bdd4f156a09a4372269d34.tar.gz
scrott-6819f27ab74011ff13bdd4f156a09a4372269d34.zip
+ Defined schema for message table
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql14
1 files changed, 13 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index 58cbc45..fd37b18 100644
--- a/schema.sql
+++ b/schema.sql
@@ -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`)
+);