|
Lines 7113-7118
CREATE TABLE `zebraqueue` (
Link Here
|
| 7113 |
/*!40101 SET character_set_client = @saved_cs_client */; |
7113 |
/*!40101 SET character_set_client = @saved_cs_client */; |
| 7114 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
7114 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
| 7115 |
|
7115 |
|
|
|
7116 |
-- |
| 7117 |
-- Table structure for table `patron_quota` |
| 7118 |
-- |
| 7119 |
|
| 7120 |
DROP TABLE IF EXISTS `patron_quota`; |
| 7121 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 7122 |
/*!40101 SET character_set_client = utf8 */; |
| 7123 |
CREATE TABLE `patron_quota` ( |
| 7124 |
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'unique identifier for the quota record', |
| 7125 |
`description` longtext NOT NULL COMMENT 'user friendly description for the quota record', |
| 7126 |
`patron_id` int(11) NOT NULL COMMENT 'foreign key linking to borrowers.borrowernumber', |
| 7127 |
`allocation` int(11) NOT NULL DEFAULT 0 COMMENT 'total quota allocation for the period', |
| 7128 |
`used` int(11) NOT NULL DEFAULT 0 COMMENT 'amount of allocation used for current period', |
| 7129 |
`start_date` date NOT NULL COMMENT 'start date of the allocation period', |
| 7130 |
`end_date` date NOT NULL COMMENT 'end date of the allocation period', |
| 7131 |
PRIMARY KEY (`id`), |
| 7132 |
KEY `patron_quota_ibfk_1` (`patron_id`), |
| 7133 |
CONSTRAINT `patron_quota_ibfk_1` FOREIGN KEY (`patron_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE |
| 7134 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 7135 |
/*!40101 SET character_set_client = @saved_cs_client */; |
| 7136 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
| 7137 |
|
| 7116 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
7138 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
| 7117 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
7139 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
| 7118 |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
7140 |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
| 7119 |
- |
|
|