Lines 4317-4322
CREATE TABLE `circulation_rules` (
Link Here
|
4317 |
`branchcode` varchar(10) NULL default NULL, |
4317 |
`branchcode` varchar(10) NULL default NULL, |
4318 |
`categorycode` varchar(10) NULL default NULL, |
4318 |
`categorycode` varchar(10) NULL default NULL, |
4319 |
`itemtype` varchar(10) NULL default NULL, |
4319 |
`itemtype` varchar(10) NULL default NULL, |
|
|
4320 |
`checkout_type` ENUM('CHECKOUT', 'ONSITE') NULL default NULL, |
4320 |
`rule_name` varchar(32) NOT NULL, |
4321 |
`rule_name` varchar(32) NOT NULL, |
4321 |
`rule_value` varchar(32) NOT NULL, |
4322 |
`rule_value` varchar(32) NOT NULL, |
4322 |
PRIMARY KEY (`id`), |
4323 |
PRIMARY KEY (`id`), |
Lines 4324-4330
CREATE TABLE `circulation_rules` (
Link Here
|
4324 |
CONSTRAINT `circ_rules_ibfk_2` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`) ON DELETE CASCADE ON UPDATE CASCADE, |
4325 |
CONSTRAINT `circ_rules_ibfk_2` FOREIGN KEY (`categorycode`) REFERENCES `categories` (`categorycode`) ON DELETE CASCADE ON UPDATE CASCADE, |
4325 |
CONSTRAINT `circ_rules_ibfk_3` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE, |
4326 |
CONSTRAINT `circ_rules_ibfk_3` FOREIGN KEY (`itemtype`) REFERENCES `itemtypes` (`itemtype`) ON DELETE CASCADE ON UPDATE CASCADE, |
4326 |
KEY `rule_name` (`rule_name`), |
4327 |
KEY `rule_name` (`rule_name`), |
4327 |
UNIQUE (`branchcode`,`categorycode`,`itemtype`,`rule_name`) |
4328 |
UNIQUE (`branchcode`,`categorycode`,`itemtype`,`checkout_type`,`rule_name`) |
4328 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4329 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
4329 |
|
4330 |
|
4330 |
-- |
4331 |
-- |
4331 |
- |
|
|