Show who else is viewing the same open ticket as you

This commit is contained in:
Marcus Hill
2022-03-26 18:05:20 +00:00
parent 5db7ab3d73
commit fb4da53026
4 changed files with 138 additions and 49 deletions

16
db.sql
View File

@@ -1274,6 +1274,22 @@ CREATE TABLE `ticket_replies` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ticket_views`
--
DROP TABLE IF EXISTS `ticket_views`;
CREATE TABLE IF NOT EXISTS `ticket_views` (
`view_id` int(11) NOT NULL AUTO_INCREMENT,
`view_ticket_id` int(11) NOT NULL,
`view_user_id` int(11) NOT NULL,
`view_timestamp` datetime NOT NULL,
PRIMARY KEY (`view_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
-- --------------------------------------------------------
--
-- Table structure for table `tickets`
--