VbzCart/tables/stk bins
Jump to navigation
Jump to search
About
- Purpose: containers in which stock may be found
- Refers to:
- REDIRECT Template:l/vc/table
- Fields:
- WhenCreated can be NOT NULL if you don't have any legacy data to deal with.
- isForShip got eventually added because I kept forgetting to use WhenVoided, and I finally decided that it wasn't redundant to have a flag specifically for this attribute
SQL
<mysql>DROP TABLE IF EXISTS `stk_bins`;
CREATE TABLE `stk_bins` (
`ID` int(11) NOT NULL auto_increment, `ID_Place` int(11) NOT NULL COMMENT 'stk_places.ID', `Code` varchar(15) NOT NULL COMMENT 'code name, e.g. NC01 -- must appear on outside of box', `Descr` varchar(63) default NULL COMMENT 'brief summary of contents', `WhenCreated` datetime default NULL COMMENT 'date when container was added to the database', `WhenVoided` datetime default NULL COMMENT 'date when container was destroyed or removed from usage', `WhenTainted` datetime default NULL COMMENT "if NOT NULL, this bin needs re-inventorying", `isForSale` tinyint(1) default NULL COMMENT "TRUE = this item is visible to customers as stock", `isForShip` tinyint(1) default NULL COMMENT "TRUE = this item is available for filling orders", `Notes` text, PRIMARY KEY (`ID`)
) ENGINE=MyISAM AUTO_INCREMENT=111 DEFAULT CHARSET=latin1;</mysql>