VbzCart/docs/tables/ title ittyps

From Woozle Writes Code
< VbzCart‎ | docs‎ | tables
Revision as of 17:17, 24 January 2011 by imported>Woozle (note similarity to now-redundant query)
Jump to navigation Jump to search

About

SQL

<section begin=sql /><mysql>DROP TABLE IF EXISTS `_title_ittyps`;

CREATE TABLE `_title_ittyps` (
  `ID_Title` int unsigned NOT NULL,
  `ID_ItTyp` int unsigned NOT NULL,
  `ID_Dept` int unsigned NOT NULL,
  `TitleName` varchar(127),
  `ItTypNameSng` varchar(63) COMMENT "cat_ittyps.NameSng",
  `ItTypNamePlr` varchar(63) COMMENT "cat_ittyps.NamePlr",
  `ItTypSort` varchar(31) COMMENT "cat_ittyps.Sort",
  `cntLines` int COMMENT "# of different items for this title+type",
  `cntCurrent` int COMMENT "# of different items whose item data is current, for this title+type",
  `cntInPrint` int COMMENT "# of different items (for type) in print for this title",
  `cntForSale` int COMMENT "# of different items available for type (either in stock or in print)",
  `cntInStock` int COMMENT "# of different items (for type) which are for sale due to at least being in stock",
  `qtyInStock` int COMMENT "-1 = some in stock, but don't know how many",
  `currMinPrice` DECIMAL(9,2) DEFAULT NULL COMMENT 'minimum price for this item type',
  `currMaxPrice` DECIMAL(9,2) DEFAULT NULL COMMENT 'maximum price for this item type',
  `CatNum` varchar(63) DEFAULT NULL,
  `CatWeb` varchar(63) DEFAULT NULL,
  `CatDir` varchar(63) DEFAULT NULL,
  PRIMARY KEY (`ID_Title`,`ID_ItTyp`,`ID_Dept`)
) ENGINE=MyISAM;</mysql>

<section end=sql />