Lines 951-956
CREATE TABLE `items` ( -- holdings/item information
Link Here
|
951 |
DROP TABLE IF EXISTS `itemtypes`; |
951 |
DROP TABLE IF EXISTS `itemtypes`; |
952 |
CREATE TABLE `itemtypes` ( -- defines the item types |
952 |
CREATE TABLE `itemtypes` ( -- defines the item types |
953 |
itemtype varchar(10) NOT NULL default '', -- unique key, a code associated with the item type |
953 |
itemtype varchar(10) NOT NULL default '', -- unique key, a code associated with the item type |
|
|
954 |
parent_type varchar(10) NULL default NULL, -- unique key, a code associated with the item type |
954 |
description LONGTEXT, -- a plain text explanation of the item type |
955 |
description LONGTEXT, -- a plain text explanation of the item type |
955 |
rentalcharge decimal(28,6) default NULL, -- the amount charged when this item is checked out/issued |
956 |
rentalcharge decimal(28,6) default NULL, -- the amount charged when this item is checked out/issued |
956 |
rentalcharge_daily decimal(28,6) default NULL, -- the amount charged for each day between checkout date and due date |
957 |
rentalcharge_daily decimal(28,6) default NULL, -- the amount charged for each day between checkout date and due date |
Lines 966-971
CREATE TABLE `itemtypes` ( -- defines the item types
Link Here
|
966 |
hideinopac tinyint(1) NOT NULL DEFAULT 0, -- Hide the item type from the search options in OPAC |
967 |
hideinopac tinyint(1) NOT NULL DEFAULT 0, -- Hide the item type from the search options in OPAC |
967 |
searchcategory varchar(80) default NULL, -- Group this item type with others with the same value on OPAC search options |
968 |
searchcategory varchar(80) default NULL, -- Group this item type with others with the same value on OPAC search options |
968 |
PRIMARY KEY (`itemtype`), |
969 |
PRIMARY KEY (`itemtype`), |
|
|
970 |
FOREIGN KEY (parent_type) REFERENCES itemtypes(itemtype) ON UPDATE CASCADE ON DELETE CASCADE, |
969 |
UNIQUE KEY `itemtype` (`itemtype`) |
971 |
UNIQUE KEY `itemtype` (`itemtype`) |
970 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
972 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
971 |
|
973 |
|
972 |
- |
|
|