|
Lines 6792-6797
CREATE TABLE `zebraqueue` (
Link Here
|
| 6792 |
/*!40101 SET character_set_client = @saved_cs_client */; |
6792 |
/*!40101 SET character_set_client = @saved_cs_client */; |
| 6793 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
6793 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
| 6794 |
|
6794 |
|
|
|
6795 |
-- |
| 6796 |
-- Table structure for table `patron_quota` |
| 6797 |
-- |
| 6798 |
|
| 6799 |
DROP TABLE IF EXISTS `patron_quota`; |
| 6800 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 6801 |
/*!40101 SET character_set_client = utf8 */; |
| 6802 |
CREATE TABLE `patron_quota` ( |
| 6803 |
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'unique identifier for the quota record', |
| 6804 |
`description` longtext NOT NULL COMMENT 'user friendly description for the quota record', |
| 6805 |
`patron_id` int(11) NOT NULL COMMENT 'foreign key linking to borrowers.borrowernumber', |
| 6806 |
`allocation` int(11) NOT NULL DEFAULT 0 COMMENT 'total quota allocation for the period', |
| 6807 |
`used` int(11) NOT NULL DEFAULT 0 COMMENT 'amount of allocation used for current period', |
| 6808 |
`start_date` date NOT NULL COMMENT 'start date of the allocation period', |
| 6809 |
`end_date` date NOT NULL COMMENT 'end date of the allocation period', |
| 6810 |
PRIMARY KEY (`id`), |
| 6811 |
KEY `patron_quota_ibfk_1` (`patron_id`), |
| 6812 |
CONSTRAINT `patron_quota_ibfk_1` FOREIGN KEY (`patron_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE |
| 6813 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 6814 |
/*!40101 SET character_set_client = @saved_cs_client */; |
| 6815 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
| 6816 |
|
| 6795 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
6817 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
| 6796 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
6818 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
| 6797 |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
6819 |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
| 6798 |
- |
|
|