Bug 6716: Documentation for the itemtypes table

This patch defines the itemtypes table.  The definiton
for the summary field is a bit of guess based on the
description in the staff client, and might need some
clarification.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Nicole C. Engard 2011-08-21 08:55:33 -04:00 committed by Chris Cormack
parent f52965559b
commit a10402086b

View file

@ -1051,13 +1051,13 @@ CREATE TABLE `items` (
--
DROP TABLE IF EXISTS `itemtypes`;
CREATE TABLE `itemtypes` (
`itemtype` varchar(10) NOT NULL default '',
`description` mediumtext,
`rentalcharge` double(16,4) default NULL,
`notforloan` smallint(6) default NULL,
`imageurl` varchar(200) default NULL,
`summary` text,
CREATE TABLE `itemtypes` ( -- defines the item types
`itemtype` varchar(10) NOT NULL default '', -- unique key, a code associated with the item type
`description` mediumtext, -- a plain text explanation of the item type
`rentalcharge` double(16,4) default NULL, -- the amount charged when this item is checked out/issued
`notforloan` smallint(6) default NULL, -- 1 if the item is not for loan, 0 if the item is available for loan
`imageurl` varchar(200) default NULL, -- URL for the item type icon
`summary` text, -- information from the summary field, may include HTML
PRIMARY KEY (`itemtype`),
UNIQUE KEY `itemtype` (`itemtype`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;