Lines 6810-6815
CREATE TABLE `patron_quota` (
Link Here
|
6810 |
/*!40101 SET character_set_client = @saved_cs_client */; |
6810 |
/*!40101 SET character_set_client = @saved_cs_client */; |
6811 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
6811 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
6812 |
|
6812 |
|
|
|
6813 |
-- |
6814 |
-- Table structure for table `patron_quota_usage` |
6815 |
-- |
6816 |
|
6817 |
DROP TABLE IF EXISTS `patron_quota_usage`; |
6818 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
6819 |
/*!40101 SET character_set_client = utf8 */; |
6820 |
CREATE TABLE `patron_quota_usage` ( |
6821 |
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'unique identifier for quota usage record', |
6822 |
`patron_quota_id` int(11) NOT NULL COMMENT 'foreign key linking to patron_quota.id', |
6823 |
`issue_id` int(11) DEFAULT NULL COMMENT 'linking to issues.issue_id or old_issues.issue_id', |
6824 |
`patron_id` int(11) NOT NULL COMMENT 'foreign key linking to borrowers.borrowernumber', |
6825 |
PRIMARY KEY (`id`), |
6826 |
KEY `patron_quota_usage_ibfk_1` (`patron_quota_id`), |
6827 |
KEY `patron_quota_usage_ibfk_2` (`patron_id`), |
6828 |
CONSTRAINT `patron_quota_usage_ibfk_1` FOREIGN KEY (`patron_quota_id`) REFERENCES `patron_quota` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, |
6829 |
CONSTRAINT `patron_quota_usage_ibfk_2` FOREIGN KEY (`patron_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE |
6830 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
6831 |
/*!40101 SET character_set_client = @saved_cs_client */; |
6832 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
6833 |
|
6813 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
6834 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
6814 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
6835 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
6815 |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
6836 |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
6816 |
- |
|
|