Merge pull request #326 from wrongecho/services

Services
This commit is contained in:
Johnny
2022-01-28 20:40:18 -05:00
committed by GitHub
9 changed files with 1212 additions and 0 deletions

83
db.sql
View File

@@ -927,6 +927,89 @@ CREATE TABLE `scheduled_tickets` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `services`
--
DROP TABLE IF EXISTS `services`;
CREATE TABLE IF NOT EXISTS `services` (
`service_id` int(11) NOT NULL AUTO_INCREMENT,
`service_name` varchar(200) CHARACTER SET latin1 NOT NULL,
`service_description` varchar(200) CHARACTER SET latin1 NOT NULL,
`service_category` varchar(20) CHARACTER SET latin1 NOT NULL,
`service_importance` varchar(10) CHARACTER SET latin1 NOT NULL,
`service_notes` text CHARACTER SET latin1 NOT NULL,
`service_created_at` datetime NOT NULL,
`service_updated_at` datetime DEFAULT NULL,
`service_review_due` date DEFAULT NULL,
`service_client_id` int(11) NOT NULL,
`company_id` int(11) NOT NULL,
PRIMARY KEY (`service_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `service_assets`
--
DROP TABLE IF EXISTS `service_assets`;
CREATE TABLE IF NOT EXISTS `service_assets` (
`service_id` int(11) NOT NULL,
`asset_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `service_contacts`
--
DROP TABLE IF EXISTS `service_contacts`;
CREATE TABLE IF NOT EXISTS `service_contacts` (
`service_id` int(11) NOT NULL,
`contact_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `service_documents`
--
DROP TABLE IF EXISTS `service_documents`;
CREATE TABLE IF NOT EXISTS `service_documents` (
`service_id` int(11) NOT NULL,
`document_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `service_domains`
--
DROP TABLE IF EXISTS `service_domains`;
CREATE TABLE IF NOT EXISTS `service_domains` (
`service_id` int(11) NOT NULL,
`domain_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Table structure for table `service_logins`
--
DROP TABLE IF EXISTS `service_logins`;
CREATE TABLE IF NOT EXISTS `service_logins` (
`service_id` int(11) NOT NULL,
`login_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `service_vendors`
--
DROP TABLE IF EXISTS `service_vendors`;
CREATE TABLE IF NOT EXISTS `service_vendors` (
`service_id` int(11) NOT NULL,
`vendor_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table structure for table `settings`
--