diff options
author | M <m@lfurio.us> | 2015-11-19 21:54:20 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-11-19 21:54:20 -0500 |
commit | b1c0e57c8a1ccb9074cc5eecc64464aaece26973 (patch) | |
tree | 0215ad368d778809093e38c9d6bd643a92992ae8 /schema.sql | |
parent | 7ed08522b6b93f39c8f7ca4074e0cd66bc28d2f5 (diff) | |
download | scrott-b1c0e57c8a1ccb9074cc5eecc64464aaece26973.tar.gz scrott-b1c0e57c8a1ccb9074cc5eecc64464aaece26973.zip |
+ Defined initial issue object in schema
Diffstat (limited to 'schema.sql')
-rw-r--r-- | schema.sql | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -46,7 +46,8 @@ CREATE TABLE `object` ( 'user', 'group', 'pad', - 'stage' + 'stage', + 'issue' ) NOT NULL, PRIMARY KEY (`guid`) ); @@ -76,6 +77,7 @@ DROP TABLE IF EXISTS `pad`; CREATE TABLE `pad` ( `guid` varchar(10) NOT NULL, `stage` varchar(10) DEFAULT NULL, + `nextIssueNumber` int(10) NOT NULL DEFAULT 0, PRIMARY KEY (`guid`) ); @@ -86,3 +88,16 @@ CREATE TABLE `stage` ( `stage` varchar(10) DEFAULT NULL, PRIMARY KEY (`guid`) ); + +/* Issue objects - special attributes */ +/* Notice: 'closed' issues should be denoted by being a child of the pad directly, and not the child of a pad's stages */ +/* Notice: an issue is 'unread' if the assignee has yet to review the issue. Self assigned issues, by definition, cannot be in unread state. */ +DROP TABLE IF EXISTS `issue`; +CREATE TABLE `issue` ( + `guid` varchar(10) NOT NULL, + `number` int(10) unsigned NOT NULL, + `assignee` varchar(10) DEFAULT NULL, + `unread` int(10) unsigned NOT NULL DEFAULT 1, + `desc` text DEFAULT NULL, + PRIMARY KEY (`guid`) +); |