Files
TriggerBackend/defaultDatabase.sql
2025-06-13 14:05:56 -05:00

302 lines
9.7 KiB
SQL

/*M!999999\- enable the sandbox mode */
-- MariaDB dump 10.19 Distrib 10.11.13-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: 127.0.0.1 Database: trigger_database
-- ------------------------------------------------------
-- Server version 10.11.13-MariaDB-0ubuntu0.24.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `applications`
--
DROP TABLE IF EXISTS `applications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `applications` (
`id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`url` varchar(50) NOT NULL,
`icon` varchar(50) NOT NULL,
`baseUrl` varchar(50) NOT NULL,
`filterName` varchar(50) NOT NULL,
`index` int(11) DEFAULT 0,
`enabled` tinyint(1) DEFAULT 1,
PRIMARY KEY (`id`),
UNIQUE KEY `applications_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=74 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `applications`
--
LOCK TABLES `applications` WRITE;
/*!40000 ALTER TABLE `applications` DISABLE KEYS */;
/*!40000 ALTER TABLE `applications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bookmarkCategories`
--
DROP TABLE IF EXISTS `bookmarkCategories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `bookmarkCategories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`categoryName` varchar(50) NOT NULL,
`categoryIndex` int(11) NOT NULL DEFAULT 0,
`filterName` varchar(50) NOT NULL DEFAULT 'Default',
PRIMARY KEY (`id`),
UNIQUE KEY `bookmarkCategories_unique` (`categoryName`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bookmarkCategories`
--
LOCK TABLES `bookmarkCategories` WRITE;
/*!40000 ALTER TABLE `bookmarkCategories` DISABLE KEYS */;
/*!40000 ALTER TABLE `bookmarkCategories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bookmarks`
--
DROP TABLE IF EXISTS `bookmarks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `bookmarks` (
`id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`url` varchar(250) NOT NULL,
`index` int(11) NOT NULL DEFAULT 0,
`category` varchar(100) NOT NULL DEFAULT 'Default',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=238 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bookmarks`
--
LOCK TABLES `bookmarks` WRITE;
/*!40000 ALTER TABLE `bookmarks` DISABLE KEYS */;
/*!40000 ALTER TABLE `bookmarks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `messages`
--
DROP TABLE IF EXISTS `messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `messages` (
`id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT,
`message` varchar(250) NOT NULL,
`customGreeting` tinyint(1) DEFAULT 1,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `messages`
--
LOCK TABLES `messages` WRITE;
/*!40000 ALTER TABLE `messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `personalData`
--
DROP TABLE IF EXISTS `personalData`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `personalData` (
`firstName` varchar(50) NOT NULL DEFAULT 'First',
`lastName` varchar(50) NOT NULL DEFAULT 'Last',
`email` varchar(50) NOT NULL DEFAULT 'triggerUser@default.com',
`physicalAddress` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `personalData`
--
LOCK TABLES `personalData` WRITE;
/*!40000 ALTER TABLE `personalData` DISABLE KEYS */;
INSERT INTO `personalData` VALUES
('First','Last','triggeruser@trigger.com','1600 Pennsylvania Avenue NW, Washington, DC 20500');
/*!40000 ALTER TABLE `personalData` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `providers`
--
DROP TABLE IF EXISTS `providers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `providers` (
`id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`url` varchar(250) NOT NULL,
`prefix` varchar(50) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `providers_unique` (`prefix`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `providers`
--
LOCK TABLES `providers` WRITE;
/*!40000 ALTER TABLE `providers` DISABLE KEYS */;
/*!40000 ALTER TABLE `providers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `searchHistory`
--
DROP TABLE IF EXISTS `searchHistory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `searchHistory` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`prefix` varchar(100) NOT NULL DEFAULT '/g',
`provider` varchar(100) NOT NULL DEFAULT 'Google Search',
`searchTerm` text DEFAULT NULL,
`dateTimeStamp` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=558 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `searchHistory`
--
LOCK TABLES `searchHistory` WRITE;
/*!40000 ALTER TABLE `searchHistory` DISABLE KEYS */;
/*!40000 ALTER TABLE `searchHistory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `themePlaylists`
--
DROP TABLE IF EXISTS `themePlaylists`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `themePlaylists` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`default` tinyint(1) NOT NULL DEFAULT 0,
`themeList` text NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `themePlaylists_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `themePlaylists`
--
LOCK TABLES `themePlaylists` WRITE;
/*!40000 ALTER TABLE `themePlaylists` DISABLE KEYS */;
INSERT INTO `themePlaylists` VALUES
(1,'Time of Day',1,'{\"0\":\"1\",\"1\":\"1\",\"2\":\"1\",\"3\":\"1\"}');
/*!40000 ALTER TABLE `themePlaylists` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `themes`
--
DROP TABLE IF EXISTS `themes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `themes` (
`id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT,
`name` varchar(250) NOT NULL,
`backgroundImage` text NOT NULL,
`backgroundColor` varchar(9) NOT NULL,
`searchColor` varchar(9) NOT NULL,
`primaryColor` varchar(9) NOT NULL,
`accentColor` varchar(9) NOT NULL,
`borderColor` varchar(9) NOT NULL,
`randomEnabled` tinyint(1) DEFAULT 0,
PRIMARY KEY (`id`),
UNIQUE KEY `themes_unique` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `themes`
--
LOCK TABLES `themes` WRITE;
/*!40000 ALTER TABLE `themes` DISABLE KEYS */;
INSERT INTO `themes` VALUES
(0000000001,'blackboard','none','#1a1a1a','#FFFDEA20','#FFFDEA','#5c5c5c','#5c5c5c',1);
/*!40000 ALTER TABLE `themes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `wolClients`
--
DROP TABLE IF EXISTS `wolClients`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `wolClients` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`hostname` varchar(100) NOT NULL,
`macAddress` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `wolClients`
--
LOCK TABLES `wolClients` WRITE;
/*!40000 ALTER TABLE `wolClients` DISABLE KEYS */;
/*!40000 ALTER TABLE `wolClients` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping routines for database 'trigger_database'
--
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2025-06-13 13:23:32