mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Add tag functionality to documents
This commit is contained in:
24
db.sql
24
db.sql
@@ -354,6 +354,30 @@ CREATE TABLE `documents` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `documents_tagged`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `documents_tagged`;
|
||||
CREATE TABLE IF NOT EXISTS `documents_tagged` (
|
||||
`document_id` int(11) NOT NULL,
|
||||
`tag_id` int(11) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
COMMIT;
|
||||
|
||||
--
|
||||
-- Table structure for table `document_tags`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `document_tags`;
|
||||
CREATE TABLE IF NOT EXISTS `document_tags` (
|
||||
`tag_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`client_id` int(11) NOT NULL,
|
||||
`tag_name` varchar(15) NOT NULL,
|
||||
PRIMARY KEY (`tag_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
COMMIT;
|
||||
|
||||
--
|
||||
-- Table structure for table `domains`
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user