Lines 6059-6065
CREATE TABLE `subscription` (
Link Here
|
6059 |
`subscriptionid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'unique key for this subscription', |
6059 |
`subscriptionid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'unique key for this subscription', |
6060 |
`librarian` varchar(100) DEFAULT '' COMMENT 'the librarian''s username from borrowers.userid', |
6060 |
`librarian` varchar(100) DEFAULT '' COMMENT 'the librarian''s username from borrowers.userid', |
6061 |
`startdate` date DEFAULT NULL COMMENT 'start date for this subscription', |
6061 |
`startdate` date DEFAULT NULL COMMENT 'start date for this subscription', |
6062 |
`aqbooksellerid` int(11) DEFAULT 0 COMMENT 'foreign key for aqbooksellers.id to link to the vendor', |
6062 |
`aqbooksellerid` int(11) DEFAULT NULL COMMENT 'foreign key for aqbooksellers.id to link to the vendor', |
6063 |
`cost` int(11) DEFAULT 0, |
6063 |
`cost` int(11) DEFAULT 0, |
6064 |
`aqbudgetid` int(11) DEFAULT 0, |
6064 |
`aqbudgetid` int(11) DEFAULT 0, |
6065 |
`weeklength` int(11) DEFAULT 0 COMMENT 'subscription length in weeks (will not be filled in if monthlength or numberlength is set)', |
6065 |
`weeklength` int(11) DEFAULT 0 COMMENT 'subscription length in weeks (will not be filled in if monthlength or numberlength is set)', |
Lines 6104-6112
CREATE TABLE `subscription` (
Link Here
|
6104 |
KEY `subscription_ibfk_1` (`periodicity`), |
6104 |
KEY `subscription_ibfk_1` (`periodicity`), |
6105 |
KEY `subscription_ibfk_2` (`numberpattern`), |
6105 |
KEY `subscription_ibfk_2` (`numberpattern`), |
6106 |
KEY `subscription_ibfk_3` (`biblionumber`), |
6106 |
KEY `subscription_ibfk_3` (`biblionumber`), |
|
|
6107 |
KEY `subscription_ibfk_4` (`aqbooksellerid`), |
6107 |
CONSTRAINT `subscription_ibfk_1` FOREIGN KEY (`periodicity`) REFERENCES `subscription_frequencies` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, |
6108 |
CONSTRAINT `subscription_ibfk_1` FOREIGN KEY (`periodicity`) REFERENCES `subscription_frequencies` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, |
6108 |
CONSTRAINT `subscription_ibfk_2` FOREIGN KEY (`numberpattern`) REFERENCES `subscription_numberpatterns` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, |
6109 |
CONSTRAINT `subscription_ibfk_2` FOREIGN KEY (`numberpattern`) REFERENCES `subscription_numberpatterns` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, |
6109 |
CONSTRAINT `subscription_ibfk_3` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE |
6110 |
CONSTRAINT `subscription_ibfk_3` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
|
|
6111 |
CONSTRAINT `subscription_ibfk_4` FOREIGN KEY (`aqbooksellerid`) REFERENCES `aqbooksellers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE |
6110 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
6112 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
6111 |
/*!40101 SET character_set_client = @saved_cs_client */; |
6113 |
/*!40101 SET character_set_client = @saved_cs_client */; |
6112 |
|
6114 |
|
6113 |
- |
|
|