base_db.sql 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. -- MySQL dump 10.13 Distrib 5.6.28, for debian-linux-gnu (x86_64)
  2. --
  3. -- Host: db-primary Database: bifrost
  4. -- ------------------------------------------------------
  5. -- Server version 5.5.5-10.0.12-MariaDB-log
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Current Database: `bifrost`
  18. --
  19. CREATE DATABASE /*!32312 IF NOT EXISTS*/ `bifrost` /*!40100 DEFAULT CHARACTER SET latin1 */;
  20. USE `bifrost`;
  21. --
  22. -- Table structure for table `business_logic`
  23. --
  24. DROP TABLE IF EXISTS `business_logic`;
  25. /*!40101 SET @saved_cs_client = @@character_set_client */;
  26. /*!40101 SET character_set_client = utf8 */;
  27. CREATE TABLE `business_logic` (
  28. `logic_id` int(11) NOT NULL AUTO_INCREMENT,
  29. `name` varchar(255) DEFAULT NULL,
  30. `description` text,
  31. PRIMARY KEY (`logic_id`)
  32. ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
  33. /*!40101 SET character_set_client = @saved_cs_client */;
  34. --
  35. -- Dumping data for table `business_logic`
  36. --
  37. LOCK TABLES `business_logic` WRITE;
  38. /*!40000 ALTER TABLE `business_logic` DISABLE KEYS */;
  39. INSERT INTO `business_logic` VALUES (1,'Load Basic Profile to Session','Will retrieve the user session and load it for use in the current session'),(2,'Save Basic Profile to Session','Will save the basic profile fields to the user database'),(3,'Load Default Page Information','Gathers common page information (such as title) to display');
  40. /*!40000 ALTER TABLE `business_logic` ENABLE KEYS */;
  41. UNLOCK TABLES;
  42. --
  43. -- Table structure for table `field_types`
  44. --
  45. DROP TABLE IF EXISTS `field_types`;
  46. /*!40101 SET @saved_cs_client = @@character_set_client */;
  47. /*!40101 SET character_set_client = utf8 */;
  48. CREATE TABLE `field_types` (
  49. `type_id` int(11) NOT NULL AUTO_INCREMENT,
  50. `type_name` varchar(255) DEFAULT NULL,
  51. PRIMARY KEY (`type_id`)
  52. ) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
  53. /*!40101 SET character_set_client = @saved_cs_client */;
  54. --
  55. -- Dumping data for table `field_types`
  56. --
  57. LOCK TABLES `field_types` WRITE;
  58. /*!40000 ALTER TABLE `field_types` DISABLE KEYS */;
  59. INSERT INTO `field_types` VALUES (1,'name'),(2,'email'),(3,'phone'),(4,'zip'),(5,'city'),(6,'state'),(7,'country'),(8,'address'),(9,'birthdate'),(10,'age');
  60. /*!40000 ALTER TABLE `field_types` ENABLE KEYS */;
  61. UNLOCK TABLES;
  62. --
  63. -- Table structure for table `fields`
  64. --
  65. DROP TABLE IF EXISTS `fields`;
  66. /*!40101 SET @saved_cs_client = @@character_set_client */;
  67. /*!40101 SET character_set_client = utf8 */;
  68. CREATE TABLE `fields` (
  69. `field_id` int(11) NOT NULL AUTO_INCREMENT,
  70. `field_name` varchar(255) DEFAULT NULL,
  71. `field_type` int(11) DEFAULT NULL,
  72. `field_validator` int(11) DEFAULT NULL,
  73. PRIMARY KEY (`field_id`)
  74. ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
  75. /*!40101 SET character_set_client = @saved_cs_client */;
  76. --
  77. -- Dumping data for table `fields`
  78. --
  79. LOCK TABLES `fields` WRITE;
  80. /*!40000 ALTER TABLE `fields` DISABLE KEYS */;
  81. INSERT INTO `fields` VALUES (1,'fname',1,0),(2,'lname',1,0),(3,'email',2,0);
  82. /*!40000 ALTER TABLE `fields` ENABLE KEYS */;
  83. UNLOCK TABLES;
  84. --
  85. -- Table structure for table `page_instructions`
  86. --
  87. DROP TABLE IF EXISTS `page_instructions`;
  88. /*!40101 SET @saved_cs_client = @@character_set_client */;
  89. /*!40101 SET character_set_client = utf8 */;
  90. CREATE TABLE `page_instructions` (
  91. `instruction_id` int(11) NOT NULL AUTO_INCREMENT,
  92. `page_id` int(11) NOT NULL,
  93. `logic_id` int(11) NOT NULL,
  94. `order` int(11) DEFAULT '0',
  95. `on_submit` tinyint(1) DEFAULT '0',
  96. PRIMARY KEY (`instruction_id`)
  97. ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
  98. /*!40101 SET character_set_client = @saved_cs_client */;
  99. --
  100. -- Dumping data for table `page_instructions`
  101. --
  102. LOCK TABLES `page_instructions` WRITE;
  103. /*!40000 ALTER TABLE `page_instructions` DISABLE KEYS */;
  104. INSERT INTO `page_instructions` VALUES (1,2,1,1,0),(2,2,2,0,1),(3,3,1,0,0),(4,3,2,0,1),(5,2,3,0,0);
  105. /*!40000 ALTER TABLE `page_instructions` ENABLE KEYS */;
  106. UNLOCK TABLES;
  107. --
  108. -- Table structure for table `page_settings`
  109. --
  110. DROP TABLE IF EXISTS `page_settings`;
  111. /*!40101 SET @saved_cs_client = @@character_set_client */;
  112. /*!40101 SET character_set_client = utf8 */;
  113. CREATE TABLE `page_settings` (
  114. `page_id` int(11) NOT NULL AUTO_INCREMENT,
  115. `template_filename` text,
  116. `template_path` text,
  117. PRIMARY KEY (`page_id`)
  118. ) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
  119. /*!40101 SET character_set_client = @saved_cs_client */;
  120. --
  121. -- Dumping data for table `page_settings`
  122. --
  123. LOCK TABLES `page_settings` WRITE;
  124. /*!40000 ALTER TABLE `page_settings` DISABLE KEYS */;
  125. INSERT INTO `page_settings` VALUES (1,'index.html','default'),(2,'index.html','coreg123'),(5,'index.html','coreg345'),(11,'index.html','coreg456'),(3,'index.html','coreg234');
  126. /*!40000 ALTER TABLE `page_settings` ENABLE KEYS */;
  127. UNLOCK TABLES;
  128. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  129. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  130. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  131. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  132. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  133. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  134. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  135. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  136. -- Dump completed on 2016-03-17 8:40:52