Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. --
  2. -- Database: `resources`
  3. --
  4.  
  5. -- --------------------------------------------------------
  6.  
  7.  
  8. --
  9. -- Table structure for table `matchSubject`
  10. --
  11.  
  12. CREATE TABLE IF NOT EXISTS `matchSubject` (
  13. `resource_id` int(8) NOT NULL DEFAULT '0',
  14. `subject_id` int(8) NOT NULL DEFAULT '0',
  15. PRIMARY KEY (`resource_id`,`subject_id`)
  16. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  17.  
  18. -- --------------------------------------------------------
  19.  
  20. --
  21. -- Table structure for table `matchTopic`
  22. --
  23.  
  24. CREATE TABLE IF NOT EXISTS `matchTopic` (
  25. `resource_id` int(8) NOT NULL DEFAULT '0',
  26. `topic_id` int(8) NOT NULL DEFAULT '0',
  27. KEY `resource_id` (`resource_id`),
  28. KEY `topic_id` (`topic_id`)
  29. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  30.  
  31. -- --------------------------------------------------------
  32.  
  33. --
  34. -- Table structure for table `matchType`
  35. --
  36.  
  37. CREATE TABLE IF NOT EXISTS `matchType` (
  38. `resource_id` int(8) NOT NULL DEFAULT '0',
  39. `type_id` int(8) NOT NULL DEFAULT '0',
  40. PRIMARY KEY (`resource_id`,`type_id`)
  41. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  42.  
  43. -- --------------------------------------------------------
  44.  
  45. --
  46. -- Table structure for table `resource`
  47. --
  48.  
  49. CREATE TABLE IF NOT EXISTS `resource` (
  50. `resource_id` int(8) NOT NULL AUTO_INCREMENT,
  51. `resource_status` varchar(5) NOT NULL DEFAULT 'a',
  52. `resource_visits` int(10) DEFAULT '0' COMMENT 'visit count',
  53. `dc_title` text NOT NULL,
  54. `dc_identifier` text NOT NULL,
  55. `dc_publisher` varchar(255) DEFAULT NULL COMMENT 'Vendor',
  56. `dc_creator_id` int(3) NOT NULL DEFAULT '58',
  57. `dc_description` text NOT NULL,
  58. `dc_coverage` varchar(75) DEFAULT NULL,
  59. `dc_dateModified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  60. `dc_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'element_subelement - date record created',
  61. `dc_access` text,
  62. `dc_use_note` text,
  63. `dc_note` text,
  64. `dc_keyword` text,
  65. PRIMARY KEY (`resource_id`),
  66. KEY `resource_status` (`resource_status`),
  67. FULLTEXT KEY `full_index` (`dc_title`,`dc_description`,`dc_use_note`,`dc_keyword`)
  68. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  69.  
  70. -- --------------------------------------------------------
  71.  
  72. --
  73. -- Table structure for table `subject`
  74. --
  75.  
  76. CREATE TABLE IF NOT EXISTS `subject` (
  77. `subject_id` int(8) NOT NULL AUTO_INCREMENT,
  78. `springshare_subject_id` int(8) DEFAULT NULL COMMENT 'identifier for subjects in springhare products',
  79. `dc_subject` varchar(255) NOT NULL DEFAULT 'reference' COMMENT `discipline-based controlled vocabulary based on university course catalog`,
  80. `dc_subjectCode` varchar(10) DEFAULT NULL,
  81. PRIMARY KEY (`subject_id`),
  82. KEY `dc_subject` (`dc_subject`)
  83. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  84.  
  85. -- --------------------------------------------------------
  86.  
  87. --
  88. -- Table structure for table `topic`
  89. --
  90.  
  91. CREATE TABLE IF NOT EXISTS `topic` (
  92. `topic_id` int(8) NOT NULL AUTO_INCREMENT,
  93. `topic` varchar(255) DEFAULT NULL COMMENT 'topic preferred label',
  94. `topic_uri` varchar(100) NOT NULL DEFAULT 'topic link' COMMENT `dbpedia topic linked data URI`,
  95. PRIMARY KEY (`topic_id`)
  96. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
  97.  
  98. -- --------------------------------------------------------
  99.  
  100. --
  101. -- Table structure for table `type`
  102. --
  103.  
  104. CREATE TABLE IF NOT EXISTS `type` (
  105. `type_id` int(8) NOT NULL AUTO_INCREMENT,
  106. `dc_type` varchar(255) NOT NULL DEFAULT 'database' COMMENT `generic types for resources`,
  107. PRIMARY KEY (`type_id`),
  108. KEY `dc_type` (`dc_type`)
  109. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement