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