Lines 5994-6000
CREATE TABLE `subscription` (
Link Here
|
5994 |
`subscriptionid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'unique key for this subscription', |
5994 |
`subscriptionid` int(11) NOT NULL AUTO_INCREMENT COMMENT 'unique key for this subscription', |
5995 |
`librarian` varchar(100) DEFAULT '' COMMENT 'the librarian''s username from borrowers.userid', |
5995 |
`librarian` varchar(100) DEFAULT '' COMMENT 'the librarian''s username from borrowers.userid', |
5996 |
`startdate` date DEFAULT NULL COMMENT 'start date for this subscription', |
5996 |
`startdate` date DEFAULT NULL COMMENT 'start date for this subscription', |
5997 |
`aqbooksellerid` int(11) DEFAULT 0 COMMENT 'foreign key for aqbooksellers.id to link to the vendor', |
5997 |
`aqbooksellerid` int(11) DEFAULT NULL COMMENT 'foreign key for aqbooksellers.id to link to the vendor', |
5998 |
`cost` int(11) DEFAULT 0, |
5998 |
`cost` int(11) DEFAULT 0, |
5999 |
`aqbudgetid` int(11) DEFAULT 0, |
5999 |
`aqbudgetid` int(11) DEFAULT 0, |
6000 |
`weeklength` int(11) DEFAULT 0 COMMENT 'subscription length in weeks (will not be filled in if monthlength or numberlength is set)', |
6000 |
`weeklength` int(11) DEFAULT 0 COMMENT 'subscription length in weeks (will not be filled in if monthlength or numberlength is set)', |
Lines 6039-6047
CREATE TABLE `subscription` (
Link Here
|
6039 |
KEY `subscription_ibfk_1` (`periodicity`), |
6039 |
KEY `subscription_ibfk_1` (`periodicity`), |
6040 |
KEY `subscription_ibfk_2` (`numberpattern`), |
6040 |
KEY `subscription_ibfk_2` (`numberpattern`), |
6041 |
KEY `subscription_ibfk_3` (`biblionumber`), |
6041 |
KEY `subscription_ibfk_3` (`biblionumber`), |
|
|
6042 |
KEY `subscription_ibfk_4` (`aqbooksellerid`), |
6042 |
CONSTRAINT `subscription_ibfk_1` FOREIGN KEY (`periodicity`) REFERENCES `subscription_frequencies` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, |
6043 |
CONSTRAINT `subscription_ibfk_1` FOREIGN KEY (`periodicity`) REFERENCES `subscription_frequencies` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, |
6043 |
CONSTRAINT `subscription_ibfk_2` FOREIGN KEY (`numberpattern`) REFERENCES `subscription_numberpatterns` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, |
6044 |
CONSTRAINT `subscription_ibfk_2` FOREIGN KEY (`numberpattern`) REFERENCES `subscription_numberpatterns` (`id`) ON DELETE SET NULL ON UPDATE CASCADE, |
6044 |
CONSTRAINT `subscription_ibfk_3` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE |
6045 |
CONSTRAINT `subscription_ibfk_3` FOREIGN KEY (`biblionumber`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
|
|
6046 |
CONSTRAINT `subscription_ibfk_4` FOREIGN KEY (`aqbooksellerid`) REFERENCES `aqbooksellers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE |
6045 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
6047 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
6046 |
/*!40101 SET character_set_client = @saved_cs_client */; |
6048 |
/*!40101 SET character_set_client = @saved_cs_client */; |
6047 |
|
6049 |
|
6048 |
- |
|
|