|
Lines 6867-6872
CREATE TABLE `zebraqueue` (
Link Here
|
| 6867 |
/*!40101 SET character_set_client = @saved_cs_client */; |
6867 |
/*!40101 SET character_set_client = @saved_cs_client */; |
| 6868 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
6868 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
| 6869 |
|
6869 |
|
|
|
6870 |
-- |
| 6871 |
-- Table structure for table `patron_quota` |
| 6872 |
-- |
| 6873 |
|
| 6874 |
DROP TABLE IF EXISTS `patron_quota`; |
| 6875 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
| 6876 |
/*!40101 SET character_set_client = utf8 */; |
| 6877 |
CREATE TABLE `patron_quota` ( |
| 6878 |
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'unique identifier for the quota record', |
| 6879 |
`description` longtext NOT NULL COMMENT 'user friendly description for the quota record', |
| 6880 |
`patron_id` int(11) NOT NULL COMMENT 'foreign key linking to borrowers.borrowernumber', |
| 6881 |
`allocation` int(11) NOT NULL DEFAULT 0 COMMENT 'total quota allocation for the period', |
| 6882 |
`used` int(11) NOT NULL DEFAULT 0 COMMENT 'amount of allocation used for current period', |
| 6883 |
`start_date` date NOT NULL COMMENT 'start date of the allocation period', |
| 6884 |
`end_date` date NOT NULL COMMENT 'end date of the allocation period', |
| 6885 |
PRIMARY KEY (`id`), |
| 6886 |
KEY `patron_quota_ibfk_1` (`patron_id`), |
| 6887 |
CONSTRAINT `patron_quota_ibfk_1` FOREIGN KEY (`patron_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE |
| 6888 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
| 6889 |
/*!40101 SET character_set_client = @saved_cs_client */; |
| 6890 |
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
| 6891 |
|
| 6870 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
6892 |
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
| 6871 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
6893 |
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
| 6872 |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
6894 |
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
| 6873 |
- |
|
|