WorkFerret/tables/project: Difference between revisions
< WorkFerret | tables
Jump to navigation
Jump to search
(consolidating project and account (client) tables) |
(added missing backquote) |
||
Line 7: | Line 7: | ||
<mysql>DROP TABLE IF EXISTS `project`; | <mysql>DROP TABLE IF EXISTS `project`; | ||
CREATE TABLE `project` ( | CREATE TABLE `project` ( | ||
`ID` | `ID` INT(4) NOT NULL AUTO_INCREMENT, | ||
`ID_Parent INT(4) DEFAULT NULL COMMENT "Parent project (can be client or category)", | `ID_Parent` INT(4) DEFAULT NULL COMMENT "Parent project (can be client or category)", | ||
`Name` | `Name` VARCHAR(63) NOT NULL COMMENT "Name of project", | ||
`InvcPfx` | `InvcPfx` VARCHAR(7) DEFAULT NULL COMMENT "prefix for invoice numbers", | ||
PRIMARY KEY(`ID`) | PRIMARY KEY(`ID`) | ||
) ENGINE=MyISAM;</mysql> | ) ENGINE=MyISAM;</mysql> |
Revision as of 12:33, 29 January 2010
About
- History:
- 2010-01-28 Adapted from MS Access version; consolidating WorkProject and WorkAcct tables
- Fields:
- InvcPfx: If set, this indicates that the project is billable (otherwise it's just a category or sub-project)
SQL
<mysql>DROP TABLE IF EXISTS `project`; CREATE TABLE `project` (
`ID` INT(4) NOT NULL AUTO_INCREMENT, `ID_Parent` INT(4) DEFAULT NULL COMMENT "Parent project (can be client or category)", `Name` VARCHAR(63) NOT NULL COMMENT "Name of project", `InvcPfx` VARCHAR(7) DEFAULT NULL COMMENT "prefix for invoice numbers", PRIMARY KEY(`ID`)
) ENGINE=MyISAM;</mysql>