Lines 5729-5734
CREATE TABLE `tags_index` (
Link Here
|
5729 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5729 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5730 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5730 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5731 |
|
5731 |
|
|
|
5732 |
-- |
5733 |
-- Table structure for table `tickets` |
5734 |
-- |
5735 |
|
5736 |
DROP TABLE IF EXISTS `tickets`; |
5737 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
5738 |
/*!40101 SET character_set_client = utf8 */; |
5739 |
CREATE TABLE IF NOT EXISTS `tickets` ( |
5740 |
`id` int(11) NOT NULL auto_increment COMMENT 'primary key', |
5741 |
`reporter_id` int(11) NOT NULL DEFAULT 0 COMMENT 'id of the patron who reported the ticket', |
5742 |
`reported_date` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'date and time this ticket was reported', |
5743 |
`title` text NOT NULL COMMENT 'ticket title', |
5744 |
`body` text NOT NULL COMMENT 'ticket details', |
5745 |
`resolver_id` int(11) DEFAULT NULL COMMENT 'id of the user who resolved the ticket', |
5746 |
`resolved_date` datetime DEFAULT NULL COMMENT 'date and time this ticket was resolved', |
5747 |
`biblio_id` int(11) DEFAULT NULL COMMENT 'id of biblio linked', |
5748 |
PRIMARY KEY(`id`), |
5749 |
CONSTRAINT `tickets_ibfk_1` FOREIGN KEY (`reporter_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
5750 |
CONSTRAINT `tickets_ibfk_2` FOREIGN KEY (`resolver_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE, |
5751 |
CONSTRAINT `tickets_ibfk_3` FOREIGN KEY (`biblio_id`) REFERENCES `biblio` (`biblionumber`) ON DELETE CASCADE ON UPDATE CASCADE |
5752 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5753 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5754 |
|
5755 |
-- |
5756 |
-- Table structure for table `ticket_updates` |
5757 |
-- |
5758 |
|
5759 |
DROP TABLE IF EXISTS `ticket_updates`; |
5760 |
/*!40101 SET @saved_cs_client = @@character_set_client */; |
5761 |
/*!40101 SET character_set_client = utf8 */; |
5762 |
CREATE TABLE IF NOT EXISTS `ticket_updates` ( |
5763 |
`id` int(11) NOT NULL auto_increment COMMENT 'primary key', |
5764 |
`ticket_id` int(11) NOT NULL COMMENT 'id of catalog ticket the update relates to', |
5765 |
`user_id` int(11) NOT NULL DEFAULT 0 COMMENT 'id of the user who logged the update', |
5766 |
`public` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'boolean flag to denote whether this update is public', |
5767 |
`date` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'date and time this update was logged', |
5768 |
`message` text NOT NULL COMMENT 'update message content', |
5769 |
PRIMARY KEY(`id`), |
5770 |
CONSTRAINT `ticket_updates_ibfk_1` FOREIGN KEY (`ticket_id`) REFERENCES `tickets` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, |
5771 |
CONSTRAINT `ticket_updates_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `borrowers` (`borrowernumber`) ON DELETE CASCADE ON UPDATE CASCADE |
5772 |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
5773 |
/*!40101 SET character_set_client = @saved_cs_client */; |
5774 |
|
5732 |
-- |
5775 |
-- |
5733 |
-- Table structure for table `tmp_holdsqueue` |
5776 |
-- Table structure for table `tmp_holdsqueue` |
5734 |
-- |
5777 |
-- |
5735 |
- |
|
|