Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.39 KB | None | 0 0
  1. /*
  2. MySQL Data Transfer
  3. Source Host: 10.100.200.8
  4. Source Database: mmoportal
  5. Target Host: 10.100.200.8
  6. Target Database: mmoportal
  7. Date: 23.05.2011 9:17:03
  8. */
  9.  
  10. SET FOREIGN_KEY_CHECKS=0;
  11. -- ----------------------------
  12. -- Table structure for forum_cats
  13. -- ----------------------------
  14. CREATE TABLE `forum_cats` (
  15. `id` int(5) NOT NULL AUTO_INCREMENT,
  16. `title` varchar(255) DEFAULT NULL,
  17. `sortKey` int(5) NOT NULL DEFAULT '0',
  18. PRIMARY KEY (`id`)
  19. ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
  20.  
  21. -- ----------------------------
  22. -- Table structure for forum_posts
  23. -- ----------------------------
  24. CREATE TABLE `forum_posts` (
  25. `id` int(11) NOT NULL AUTO_INCREMENT,
  26. `topicId` int(11) DEFAULT NULL,
  27. `text` text NOT NULL,
  28. `dateCreate` int(10) NOT NULL DEFAULT '0',
  29. `dateModify` int(10) NOT NULL DEFAULT '0',
  30. `userId` int(11) NOT NULL DEFAULT '0',
  31. PRIMARY KEY (`id`),
  32. KEY `FK_forum_posts_users` (`userId`),
  33. KEY `FK_forum_posts_topics` (`topicId`),
  34. CONSTRAINT `FK_forum_posts_topics` FOREIGN KEY (`topicId`) REFERENCES `forum_topics` (`id`) ON DELETE CASCADE,
  35. CONSTRAINT `FK_forum_posts_users` FOREIGN KEY (`userId`) REFERENCES `my_aspnet_users` (`id`)
  36. ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
  37.  
  38. -- ----------------------------
  39. -- Table structure for forum_topics
  40. -- ----------------------------
  41. CREATE TABLE `forum_topics` (
  42. `id` int(11) NOT NULL AUTO_INCREMENT,
  43. `catId` int(5) DEFAULT NULL,
  44. `postId` int(11) DEFAULT NULL COMMENT 'id первого поста темы',
  45. `title` varchar(255) NOT NULL,
  46. `lastPostId` int(11) DEFAULT NULL COMMENT 'id последнего поста темы',
  47. `viewCount` int(10) NOT NULL DEFAULT '0',
  48. `postCount` int(10) NOT NULL DEFAULT '0',
  49. PRIMARY KEY (`id`),
  50. KEY `FK_forum_topics_cats` (`catId`),
  51. KEY `FK_forum_topics_post` (`postId`),
  52. KEY `FK_forum_topics_lastpost` (`lastPostId`),
  53. CONSTRAINT `FK_forum_topics_cat` FOREIGN KEY (`catId`) REFERENCES `forum_cats` (`id`),
  54. CONSTRAINT `FK_forum_topics_lastpost` FOREIGN KEY (`lastPostId`) REFERENCES `forum_posts` (`id`) ON DELETE SET NULL,
  55. CONSTRAINT `FK_forum_topics_post` FOREIGN KEY (`postId`) REFERENCES `forum_posts` (`id`) ON DELETE SET NULL
  56. ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
  57.  
  58. -- ----------------------------
  59. -- Table structure for items
  60. -- ----------------------------
  61. CREATE TABLE `items` (
  62. `id` int(11) NOT NULL AUTO_INCREMENT,
  63. `title` varchar(128) NOT NULL,
  64. `text` text,
  65. `infoTitle` varchar(32) DEFAULT NULL COMMENT 'справа страницы небольшой блок с инфой',
  66. `infoText` text,
  67. `infoImage` varchar(255) DEFAULT NULL COMMENT 'путь к картинке, которая отображается в правом блоке',
  68. `projectId` int(4) NOT NULL DEFAULT '0',
  69. `authorId` int(11) NOT NULL DEFAULT '0',
  70. `editorId` int(11) NOT NULL DEFAULT '0',
  71. `dateCreate` int(10) NOT NULL DEFAULT '0',
  72. `dateModify` int(10) NOT NULL DEFAULT '0',
  73. PRIMARY KEY (`id`),
  74. KEY `FK_items_projects` (`projectId`),
  75. KEY `FK_items_users` (`authorId`),
  76. CONSTRAINT `FK_items_projects` FOREIGN KEY (`projectId`) REFERENCES `projects` (`id`),
  77. CONSTRAINT `FK_items_users` FOREIGN KEY (`authorId`) REFERENCES `my_aspnet_users` (`id`)
  78. ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC;
  79.  
  80. -- ----------------------------
  81. -- Table structure for my_aspnet_applications
  82. -- ----------------------------
  83. CREATE TABLE `my_aspnet_applications` (
  84. `id` int(11) NOT NULL AUTO_INCREMENT,
  85. `name` varchar(256) DEFAULT NULL,
  86. `description` varchar(256) DEFAULT NULL,
  87. PRIMARY KEY (`id`)
  88. ) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
  89.  
  90. -- ----------------------------
  91. -- Table structure for my_aspnet_membership
  92. -- ----------------------------
  93. CREATE TABLE `my_aspnet_membership` (
  94. `userId` int(11) NOT NULL DEFAULT '0',
  95. `Email` varchar(128) DEFAULT NULL,
  96. `Comment` varchar(255) DEFAULT NULL,
  97. `Password` varchar(128) NOT NULL,
  98. `PasswordKey` char(32) DEFAULT NULL,
  99. `PasswordFormat` tinyint(4) DEFAULT NULL,
  100. `PasswordQuestion` varchar(255) DEFAULT NULL,
  101. `PasswordAnswer` varchar(255) DEFAULT NULL,
  102. `IsApproved` tinyint(1) DEFAULT NULL,
  103. `LastActivityDate` datetime DEFAULT NULL,
  104. `LastLoginDate` datetime DEFAULT NULL,
  105. `LastPasswordChangedDate` datetime DEFAULT NULL,
  106. `CreationDate` datetime DEFAULT NULL,
  107. `IsLockedOut` tinyint(1) DEFAULT NULL,
  108. `LastLockedOutDate` datetime DEFAULT NULL,
  109. `FailedPasswordAttemptCount` int(10) unsigned DEFAULT NULL,
  110. `FailedPasswordAttemptWindowStart` datetime DEFAULT NULL,
  111. `FailedPasswordAnswerAttemptCount` int(10) unsigned DEFAULT NULL,
  112. `FailedPasswordAnswerAttemptWindowStart` datetime DEFAULT NULL,
  113. PRIMARY KEY (`userId`)
  114. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='2';
  115.  
  116. -- ----------------------------
  117. -- Table structure for my_aspnet_profiles
  118. -- ----------------------------
  119. CREATE TABLE `my_aspnet_profiles` (
  120. `userId` int(11) NOT NULL,
  121. `valueindex` longtext,
  122. `stringdata` longtext,
  123. `binarydata` longblob,
  124. `lastUpdatedDate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  125. PRIMARY KEY (`userId`)
  126. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  127.  
  128. -- ----------------------------
  129. -- Table structure for my_aspnet_roles
  130. -- ----------------------------
  131. CREATE TABLE `my_aspnet_roles` (
  132. `id` int(11) NOT NULL AUTO_INCREMENT,
  133. `applicationId` int(11) NOT NULL,
  134. `name` varchar(255) NOT NULL,
  135. PRIMARY KEY (`id`)
  136. ) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  137.  
  138. -- ----------------------------
  139. -- Table structure for my_aspnet_schemaversion
  140. -- ----------------------------
  141. CREATE TABLE `my_aspnet_schemaversion` (
  142. `version` int(11) DEFAULT NULL
  143. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  144.  
  145. -- ----------------------------
  146. -- Table structure for my_aspnet_sessioncleanup
  147. -- ----------------------------
  148. CREATE TABLE `my_aspnet_sessioncleanup` (
  149. `LastRun` datetime NOT NULL,
  150. `IntervalMinutes` int(11) NOT NULL
  151. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  152.  
  153. -- ----------------------------
  154. -- Table structure for my_aspnet_sessions
  155. -- ----------------------------
  156. CREATE TABLE `my_aspnet_sessions` (
  157. `SessionId` varchar(255) NOT NULL,
  158. `ApplicationId` int(11) NOT NULL,
  159. `Created` datetime NOT NULL,
  160. `Expires` datetime NOT NULL,
  161. `LockDate` datetime NOT NULL,
  162. `LockId` int(11) NOT NULL,
  163. `Timeout` int(11) NOT NULL,
  164. `Locked` tinyint(1) NOT NULL,
  165. `SessionItems` longblob,
  166. `Flags` int(11) NOT NULL,
  167. PRIMARY KEY (`SessionId`,`ApplicationId`)
  168. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
  169.  
  170. -- ----------------------------
  171. -- Table structure for my_aspnet_users
  172. -- ----------------------------
  173. CREATE TABLE `my_aspnet_users` (
  174. `id` int(11) NOT NULL AUTO_INCREMENT,
  175. `applicationId` int(11) NOT NULL,
  176. `name` varchar(256) NOT NULL,
  177. `isAnonymous` tinyint(1) NOT NULL DEFAULT '1',
  178. `lastActivityDate` datetime DEFAULT NULL,
  179. PRIMARY KEY (`id`),
  180. KEY `name` (`name`(255))
  181. ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC;
  182.  
  183. -- ----------------------------
  184. -- Table structure for my_aspnet_usersinroles
  185. -- ----------------------------
  186. CREATE TABLE `my_aspnet_usersinroles` (
  187. `userId` int(11) NOT NULL DEFAULT '0',
  188. `roleId` int(11) NOT NULL DEFAULT '0',
  189. PRIMARY KEY (`userId`,`roleId`)
  190. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
  191.  
  192. -- ----------------------------
  193. -- Table structure for projects
  194. -- ----------------------------
  195. CREATE TABLE `projects` (
  196. `id` int(11) NOT NULL AUTO_INCREMENT,
  197. `title` varchar(32) NOT NULL,
  198. `itemId` int(11) NOT NULL DEFAULT '0' COMMENT 'ID статьи, отображаемой в качестве описания проекта',
  199. `isProject` tinyint(1) NOT NULL DEFAULT '1',
  200. `sortKey` int(5) NOT NULL DEFAULT '0',
  201. PRIMARY KEY (`id`)
  202. ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC;
  203.  
  204. -- ----------------------------
  205. -- Records
  206. -- ----------------------------
  207. INSERT INTO `my_aspnet_applications` VALUES ('1', '/', 'Roles');
  208. INSERT INTO `my_aspnet_roles` VALUES ('1', '1', 'Admin');
  209. INSERT INTO `my_aspnet_roles` VALUES ('2', '1', 'Banned');
  210. INSERT INTO `my_aspnet_schemaversion` VALUES ('6');
  211. INSERT INTO `my_aspnet_sessioncleanup` VALUES ('2011-05-23 06:52:03', '10');
  212. INSERT INTO `my_aspnet_usersinroles` VALUES ('1', '1');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement