PageRenderTime 53ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/halogy_sql_dump.sql

https://bitbucket.org/haloweb/halogy-1.0/
SQL | 1298 lines | 1034 code | 264 blank | 0 comment | 0 complexity | 2d7ff8c41e8c534a7e7b6bace57bab6e MD5 | raw file
  1. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  2. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  3. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  4. /*!40101 SET NAMES utf8 */;
  5. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  6. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  7. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  8. # Dump of table ha_blog_catmap
  9. # ------------------------------------------------------------
  10. CREATE TABLE `ha_blog_catmap` (
  11. `catID` int(11) NOT NULL default '0',
  12. `postID` int(11) NOT NULL default '0',
  13. `siteID` int(11) default NULL,
  14. PRIMARY KEY (`catID`,`postID`)
  15. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  16. # Dump of table ha_blog_cats
  17. # ------------------------------------------------------------
  18. CREATE TABLE `ha_blog_cats` (
  19. `catID` int(11) NOT NULL auto_increment,
  20. `catName` varchar(100) collate utf8_unicode_ci default NULL,
  21. `catSafe` varchar(100) collate utf8_unicode_ci default NULL,
  22. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  23. `catOrder` int(11) default NULL,
  24. `deleted` tinyint(1) unsigned NOT NULL default '0',
  25. `siteID` int(11) default NULL,
  26. PRIMARY KEY (`catID`)
  27. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  28. # Dump of table ha_blog_comments
  29. # ------------------------------------------------------------
  30. CREATE TABLE `ha_blog_comments` (
  31. `commentID` int(11) NOT NULL auto_increment,
  32. `postID` int(11) NOT NULL default '0',
  33. `dateCreated` timestamp NULL default '0000-00-00 00:00:00',
  34. `comment` text collate utf8_unicode_ci,
  35. `fullName` varchar(100) collate utf8_unicode_ci default NULL,
  36. `email` varchar(100) collate utf8_unicode_ci default NULL,
  37. `website` varchar(100) collate utf8_unicode_ci default NULL,
  38. `active` tinyint(1) unsigned NOT NULL default '1',
  39. `deleted` tinyint(1) unsigned NOT NULL default '0',
  40. `siteID` int(11) default NULL,
  41. PRIMARY KEY (`commentID`)
  42. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  43. # Dump of table ha_blog_posts
  44. # ------------------------------------------------------------
  45. CREATE TABLE `ha_blog_posts` (
  46. `postID` int(11) NOT NULL auto_increment,
  47. `postTitle` varchar(100) collate utf8_unicode_ci default NULL,
  48. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  49. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  50. `uri` varchar(100) collate utf8_unicode_ci default NULL,
  51. `body` text collate utf8_unicode_ci,
  52. `excerpt` text collate utf8_unicode_ci,
  53. `userID` int(11) default NULL,
  54. `tags` varchar(250) collate utf8_unicode_ci default NULL,
  55. `published` tinyint(1) NOT NULL default '1',
  56. `allowComments` tinyint(1) NOT NULL default '1',
  57. `allowPings` tinyint(1) NOT NULL default '1',
  58. `views` int(11) unsigned NOT NULL default '0',
  59. `deleted` tinyint(1) default '0',
  60. `siteID` int(11) default NULL,
  61. PRIMARY KEY (`postID`)
  62. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  63. # Dump of table ha_captcha
  64. # ------------------------------------------------------------
  65. CREATE TABLE `ha_captcha` (
  66. `captcha_id` bigint(13) unsigned NOT NULL auto_increment,
  67. `captcha_time` int(10) unsigned NOT NULL default '0',
  68. `ip_address` varchar(16) collate utf8_unicode_ci NOT NULL default '0',
  69. `word` varchar(20) collate utf8_unicode_ci NOT NULL default '',
  70. PRIMARY KEY (`captcha_id`),
  71. KEY `word` (`word`)
  72. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  73. # Dump of table ha_community_messagemap
  74. # ------------------------------------------------------------
  75. CREATE TABLE `ha_community_messagemap` (
  76. `messageID` int(11) NOT NULL default '0',
  77. `toUserID` int(11) NOT NULL default '0',
  78. `userID` int(11) NOT NULL default '0',
  79. `siteID` int(11) NOT NULL default '0',
  80. `parentID` int(11) NOT NULL default '0',
  81. `unread` tinyint(1) unsigned NOT NULL default '1',
  82. `deleted` tinyint(1) unsigned NOT NULL default '0',
  83. PRIMARY KEY (`messageID`,`toUserID`,`userID`,`siteID`)
  84. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  85. # Dump of table ha_community_messages
  86. # ------------------------------------------------------------
  87. CREATE TABLE `ha_community_messages` (
  88. `messageID` int(11) NOT NULL auto_increment,
  89. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  90. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  91. `userID` int(11) default NULL,
  92. `subject` varchar(100) collate utf8_unicode_ci default NULL,
  93. `message` text collate utf8_unicode_ci,
  94. `siteID` int(11) default NULL,
  95. PRIMARY KEY (`messageID`)
  96. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  97. # Dump of table ha_ci_sessions
  98. # ------------------------------------------------------------
  99. CREATE TABLE `ha_ci_sessions` (
  100. `session_id` varchar(40) collate utf8_unicode_ci NOT NULL default '0',
  101. `ip_address` varchar(16) collate utf8_unicode_ci NOT NULL default '0',
  102. `user_agent` varchar(50) collate utf8_unicode_ci NOT NULL default '',
  103. `last_activity` int(10) unsigned NOT NULL default '0',
  104. `user_data` text collate utf8_unicode_ci NOT NULL,
  105. PRIMARY KEY (`session_id`)
  106. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  107. # Dump of table ha_email_blocks
  108. # ------------------------------------------------------------
  109. CREATE TABLE `ha_email_blocks` (
  110. `blockID` int(11) NOT NULL auto_increment,
  111. `emailID` int(11) default NULL,
  112. `blockRef` varchar(50) collate utf8_unicode_ci default NULL,
  113. `body` text collate utf8_unicode_ci,
  114. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  115. `siteID` int(11) default NULL,
  116. PRIMARY KEY (`blockID`)
  117. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  118. # Dump of table ha_email_campaigns
  119. # ------------------------------------------------------------
  120. CREATE TABLE `ha_email_campaigns` (
  121. `campaignID` int(11) NOT NULL auto_increment,
  122. `campaignName` varchar(100) default NULL,
  123. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  124. `siteID` int(11) default NULL,
  125. PRIMARY KEY (`campaignID`)
  126. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  127. # Dump of table ha_email_deploy
  128. # ------------------------------------------------------------
  129. CREATE TABLE `ha_email_deploy` (
  130. `deployID` int(11) NOT NULL auto_increment,
  131. `emailID` int(11) NOT NULL default '0',
  132. `email` varchar(50) NOT NULL default '0',
  133. `name` varchar(100) NOT NULL default '0',
  134. `sent` tinyint(1) NOT NULL default '0',
  135. `failed` tinyint(1) NOT NULL default '0',
  136. `siteID` int(11) default NULL,
  137. PRIMARY KEY (`deployID`)
  138. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  139. # Dump of table ha_email_includes
  140. # ------------------------------------------------------------
  141. CREATE TABLE `ha_email_includes` (
  142. `includeID` int(11) NOT NULL auto_increment,
  143. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  144. `includeRef` varchar(100) default NULL,
  145. `body` text,
  146. `siteID` int(11) default NULL,
  147. PRIMARY KEY (`includeID`)
  148. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  149. # Dump of table ha_email_list_subscribers
  150. # ------------------------------------------------------------
  151. CREATE TABLE `ha_email_list_subscribers` (
  152. `listID` int(11) NOT NULL default '0',
  153. `email` varchar(50) NOT NULL default '0',
  154. `name` varchar(100) default NULL,
  155. `siteID` int(11) default NULL,
  156. PRIMARY KEY (`listID`,`email`)
  157. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  158. # Dump of table ha_email_lists
  159. # ------------------------------------------------------------
  160. CREATE TABLE `ha_email_lists` (
  161. `listID` int(11) NOT NULL auto_increment,
  162. `listName` varchar(100) default NULL,
  163. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  164. `deleted` tinyint(1) NOT NULL default '0',
  165. `siteID` int(11) default NULL,
  166. PRIMARY KEY (`listID`)
  167. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  168. # Dump of table ha_email_templates
  169. # ------------------------------------------------------------
  170. CREATE TABLE `ha_email_templates` (
  171. `templateID` int(11) NOT NULL auto_increment,
  172. `templateName` varchar(100) default NULL,
  173. `body` text,
  174. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  175. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  176. `linkStyle` varchar(200) default NULL,
  177. `deleted` tinyint(1) unsigned NOT NULL default '0',
  178. `siteID` int(11) default NULL,
  179. PRIMARY KEY (`templateID`)
  180. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  181. # Dump of table ha_emails
  182. # ------------------------------------------------------------
  183. CREATE TABLE `ha_emails` (
  184. `emailID` int(11) NOT NULL auto_increment,
  185. `emailName` varchar(100) default NULL,
  186. `emailSubject` varchar(100) default NULL,
  187. `bodyHTML` text,
  188. `bodyText` text,
  189. `campaignID` int(11) NOT NULL default '0',
  190. `templateID` int(11) default NULL,
  191. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  192. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  193. `dateSent` timestamp NOT NULL default '0000-00-00 00:00:00',
  194. `listID` int(11) NOT NULL default '0',
  195. `deploy` tinyint(1) NOT NULL default '0',
  196. `deployDate` timestamp NULL default '0000-00-00 00:00:00',
  197. `status` enum('D','S') NOT NULL default 'D',
  198. `sent` int(11) unsigned NOT NULL default '0',
  199. `views` int(11) unsigned NOT NULL default '0',
  200. `clicks` int(11) unsigned NOT NULL default '0',
  201. `unsubscribed` int(11) unsigned NOT NULL default '0',
  202. `deleted` tinyint(1) unsigned NOT NULL default '0',
  203. `siteID` int(11) default NULL,
  204. PRIMARY KEY (`emailID`)
  205. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  206. # Dump of table ha_events
  207. # ------------------------------------------------------------
  208. CREATE TABLE `ha_events` (
  209. `eventID` int(11) NOT NULL auto_increment,
  210. `eventTitle` varchar(100) collate utf8_unicode_ci default NULL,
  211. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  212. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  213. `eventDate` timestamp NOT NULL default '0000-00-00 00:00:00',
  214. `eventEnd` timestamp NOT NULL default '0000-00-00 00:00:00',
  215. `time` varchar(100) collate utf8_unicode_ci default NULL,
  216. `location` varchar(200) collate utf8_unicode_ci default NULL,
  217. `description` text collate utf8_unicode_ci,
  218. `excerpt` text collate utf8_unicode_ci,
  219. `userID` int(11) default NULL,
  220. `groupID` int(11) NOT NULL default '0',
  221. `tags` varchar(250) collate utf8_unicode_ci default NULL,
  222. `published` tinyint(1) unsigned NOT NULL default '1',
  223. `featured` tinyint(1) unsigned default '0',
  224. `deleted` tinyint(1) unsigned default '0',
  225. `siteID` int(11) default NULL,
  226. PRIMARY KEY (`eventID`)
  227. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  228. # Dump of table ha_file_folders
  229. # ------------------------------------------------------------
  230. CREATE TABLE `ha_file_folders` (
  231. `folderID` int(11) unsigned NOT NULL auto_increment,
  232. `parentID` int(11) unsigned NOT NULL default '0',
  233. `folderName` varchar(50) collate utf8_unicode_ci default NULL,
  234. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  235. `folderOrder` int(11) default NULL,
  236. `deleted` tinyint(1) unsigned NOT NULL default '0',
  237. `siteID` int(11) default NULL,
  238. PRIMARY KEY (`folderID`)
  239. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  240. # Dump of table ha_files
  241. # ------------------------------------------------------------
  242. CREATE TABLE `ha_files` (
  243. `fileID` int(11) NOT NULL auto_increment,
  244. `fileRef` varchar(100) collate utf8_unicode_ci default NULL,
  245. `filename` varchar(100) collate utf8_unicode_ci default NULL,
  246. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  247. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  248. `folderID` int(11) NOT NULL default '0',
  249. `userID` int(11) default NULL,
  250. `deleted` tinyint(1) unsigned NOT NULL default '0',
  251. `filesize` int(11) NOT NULL default '0',
  252. `downloads` int(11) NOT NULL default '0',
  253. `siteID` int(11) default NULL,
  254. PRIMARY KEY (`fileID`)
  255. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  256. # Dump of table ha_forums
  257. # ------------------------------------------------------------
  258. CREATE TABLE `ha_forums` (
  259. `forumID` int(11) unsigned NOT NULL auto_increment,
  260. `forumName` varchar(100) collate utf8_unicode_ci default NULL,
  261. `catID` int(11) default NULL,
  262. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  263. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  264. `description` text collate utf8_unicode_ci,
  265. `topics` int(10) unsigned NOT NULL default '0',
  266. `replies` int(10) unsigned NOT NULL default '0',
  267. `lastPostID` int(11) default NULL,
  268. `private` tinyint(1) unsigned NOT NULL default '0',
  269. `groupID` int(11) default NULL,
  270. `active` tinyint(1) unsigned NOT NULL default '1',
  271. `deleted` tinyint(1) unsigned NOT NULL default '0',
  272. `siteID` int(11) default NULL,
  273. PRIMARY KEY (`forumID`)
  274. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  275. # Dump of table ha_forums_cats
  276. # ------------------------------------------------------------
  277. CREATE TABLE `ha_forums_cats` (
  278. `catID` int(11) unsigned NOT NULL auto_increment,
  279. `parentID` int(11) unsigned NOT NULL default '0',
  280. `catName` varchar(50) collate utf8_unicode_ci default NULL,
  281. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  282. `catOrder` int(11) default NULL,
  283. `deleted` tinyint(1) unsigned NOT NULL default '0',
  284. `siteID` int(11) default NULL,
  285. PRIMARY KEY (`catID`)
  286. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  287. # Dump of table ha_forums_posts
  288. # ------------------------------------------------------------
  289. CREATE TABLE `ha_forums_posts` (
  290. `postID` int(11) unsigned NOT NULL auto_increment,
  291. `topicID` int(11) unsigned NOT NULL default '0',
  292. `body` text collate utf8_unicode_ci,
  293. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  294. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  295. `userID` int(11) default NULL,
  296. `deleted` tinyint(1) unsigned NOT NULL default '0',
  297. `siteID` int(11) default NULL,
  298. PRIMARY KEY (`postID`)
  299. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  300. # Dump of table ha_forums_subs
  301. # ------------------------------------------------------------
  302. CREATE TABLE `ha_forums_subs` (
  303. `topicID` int(11) NOT NULL default '0',
  304. `userID` int(11) NOT NULL default '0',
  305. `siteID` int(11) default NULL,
  306. PRIMARY KEY (`topicID`,`userID`)
  307. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  308. # Dump of table ha_forums_topics
  309. # ------------------------------------------------------------
  310. CREATE TABLE `ha_forums_topics` (
  311. `topicID` int(11) unsigned NOT NULL auto_increment,
  312. `forumID` int(11) unsigned NOT NULL default '0',
  313. `topicTitle` varchar(50) collate utf8_unicode_ci default NULL,
  314. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  315. `dateModified` timestamp NOT NULL default '0000-00-00 00:00:00',
  316. `replies` int(11) unsigned NOT NULL default '0',
  317. `views` int(11) unsigned NOT NULL default '0',
  318. `userID` int(11) default NULL,
  319. `lastPostID` int(11) default NULL,
  320. `sticky` tinyint(1) unsigned NOT NULL default '0',
  321. `locked` tinyint(1) NOT NULL default '0',
  322. `deleted` tinyint(1) unsigned NOT NULL default '0',
  323. `siteID` int(11) default NULL,
  324. PRIMARY KEY (`topicID`)
  325. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  326. # Dump of table ha_image_folders
  327. # ------------------------------------------------------------
  328. CREATE TABLE `ha_image_folders` (
  329. `folderID` int(11) unsigned NOT NULL auto_increment,
  330. `parentID` int(11) unsigned NOT NULL default '0',
  331. `folderName` varchar(100) collate utf8_unicode_ci default NULL,
  332. `folderSafe` varchar(100) collate utf8_unicode_ci default NULL,
  333. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  334. `folderOrder` int(11) default NULL,
  335. `deleted` tinyint(1) unsigned NOT NULL default '0',
  336. `siteID` int(11) default NULL,
  337. PRIMARY KEY (`folderID`)
  338. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  339. # Dump of table ha_images
  340. # ------------------------------------------------------------
  341. CREATE TABLE `ha_images` (
  342. `imageID` int(11) NOT NULL auto_increment,
  343. `imageRef` varchar(100) collate utf8_unicode_ci default NULL,
  344. `filename` varchar(100) collate utf8_unicode_ci default NULL,
  345. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  346. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  347. `imageName` varchar(100) collate utf8_unicode_ci default NULL,
  348. `folderID` int(11) NOT NULL default '0',
  349. `groupID` int(11) NOT NULL default '0',
  350. `userID` int(11) default NULL,
  351. `class` varchar(100) collate utf8_unicode_ci default NULL,
  352. `filesize` int(11) NOT NULL default '0',
  353. `maxsize` int(11) default NULL,
  354. `deleted` tinyint(1) unsigned NOT NULL default '0',
  355. `siteID` int(11) default NULL,
  356. PRIMARY KEY (`imageID`)
  357. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  358. # Dump of table ha_include_versions
  359. # ------------------------------------------------------------
  360. CREATE TABLE `ha_include_versions` (
  361. `versionID` int(11) NOT NULL auto_increment,
  362. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  363. `objectID` int(11) default NULL,
  364. `userID` int(11) default NULL,
  365. `body` longtext collate utf8_unicode_ci,
  366. `siteID` int(11) default NULL,
  367. PRIMARY KEY (`versionID`)
  368. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  369. # Dump of table ha_includes
  370. # ------------------------------------------------------------
  371. CREATE TABLE `ha_includes` (
  372. `includeID` int(11) NOT NULL auto_increment,
  373. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  374. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  375. `versionID` int(11) NOT NULL default '0',
  376. `includeRef` varchar(100) collate utf8_unicode_ci default NULL,
  377. `type` enum('H','C','J') collate utf8_unicode_ci NOT NULL default 'H',
  378. `deleted` tinyint(1) unsigned NOT NULL default '0',
  379. `siteID` int(11) NOT NULL default '0',
  380. PRIMARY KEY (`includeID`)
  381. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  382. # Dump of table ha_navigation
  383. # ------------------------------------------------------------
  384. CREATE TABLE `ha_navigation` (
  385. `navID` int(11) NOT NULL auto_increment,
  386. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  387. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  388. `navName` varchar(100) collate utf8_unicode_ci default NULL,
  389. `uri` varchar(100) collate utf8_unicode_ci default '',
  390. `parentID` int(11) NOT NULL default '0',
  391. `navOrder` int(11) default NULL,
  392. `active` tinyint(1) NOT NULL default '1',
  393. `siteID` int(11) NOT NULL default '0',
  394. `deleted` tinyint(1) NOT NULL default '0',
  395. PRIMARY KEY (`navID`)
  396. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  397. # Dump of table ha_page_blocks
  398. # ------------------------------------------------------------
  399. CREATE TABLE `ha_page_blocks` (
  400. `blockID` int(11) NOT NULL auto_increment,
  401. `pageID` int(11) default NULL,
  402. `versionID` int(11) NOT NULL default '0',
  403. `blockRef` varchar(50) collate utf8_unicode_ci default NULL,
  404. `body` text collate utf8_unicode_ci,
  405. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  406. `siteID` int(11) NOT NULL default '0',
  407. PRIMARY KEY (`blockID`)
  408. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  409. # Dump of table ha_page_versions
  410. # ------------------------------------------------------------
  411. CREATE TABLE `ha_page_versions` (
  412. `versionID` int(11) NOT NULL auto_increment,
  413. `pageID` int(11) default NULL,
  414. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  415. `userID` int(11) default NULL,
  416. `published` tinyint(1) unsigned NOT NULL default '0',
  417. `siteID` int(11) default NULL,
  418. PRIMARY KEY (`versionID`)
  419. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  420. # Dump of table ha_pages
  421. # ------------------------------------------------------------
  422. CREATE TABLE `ha_pages` (
  423. `pageID` int(11) NOT NULL auto_increment,
  424. `versionID` int(11) NOT NULL default '0',
  425. `pageName` varchar(100) character set utf8 default NULL,
  426. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  427. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  428. `datePublished` timestamp NOT NULL default '0000-00-00 00:00:00',
  429. `title` varchar(100) character set utf8 NOT NULL default '',
  430. `active` tinyint(1) NOT NULL default '0',
  431. `uri` varchar(100) character set utf8 NOT NULL default '',
  432. `draftID` int(11) default NULL,
  433. `templateID` int(11) default NULL,
  434. `parentID` int(11) NOT NULL default '0',
  435. `pageOrder` int(11) NOT NULL default '0',
  436. `keywords` varchar(255) character set utf8 default NULL,
  437. `description` varchar(255) character set utf8 default NULL,
  438. `redirect` varchar(255) collate utf8_unicode_ci default NULL,
  439. `userID` int(11) default NULL,
  440. `groupID` int(11) default NULL,
  441. `navigation` tinyint(1) NOT NULL default '1',
  442. `views` int(11) unsigned NOT NULL default '0',
  443. `deleted` tinyint(1) unsigned NOT NULL default '0',
  444. `siteID` int(11) NOT NULL default '0',
  445. PRIMARY KEY (`pageID`),
  446. KEY `uri` (`uri`),
  447. KEY `active` (`active`)
  448. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  449. # Dump of table ha_permission_groups
  450. # ------------------------------------------------------------
  451. CREATE TABLE `ha_permission_groups` (
  452. `groupID` int(11) NOT NULL auto_increment,
  453. `groupName` varchar(200) collate utf8_unicode_ci default NULL,
  454. `siteID` int(11) default NULL,
  455. PRIMARY KEY (`groupID`)
  456. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  457. LOCK TABLES `ha_permission_groups` WRITE;
  458. /*!40000 ALTER TABLE `ha_permission_groups` DISABLE KEYS */;
  459. INSERT INTO `ha_permission_groups` (`groupID`,`groupName`,`siteID`)
  460. VALUES
  461. (-1,'Superuser',0);
  462. /*!40000 ALTER TABLE `ha_permission_groups` ENABLE KEYS */;
  463. UNLOCK TABLES;
  464. # Dump of table ha_permission_map
  465. # ------------------------------------------------------------
  466. CREATE TABLE `ha_permission_map` (
  467. `groupID` int(11) NOT NULL default '0',
  468. `permissionID` int(11) NOT NULL default '0',
  469. `siteID` int(11) default NULL,
  470. PRIMARY KEY (`groupID`,`permissionID`)
  471. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  472. # Dump of table ha_permissions
  473. # ------------------------------------------------------------
  474. CREATE TABLE `ha_permissions` (
  475. `permissionID` int(11) NOT NULL auto_increment,
  476. `permission` varchar(200) collate utf8_unicode_ci default NULL,
  477. `key` varchar(100) collate utf8_unicode_ci default NULL,
  478. `category` varchar(100) collate utf8_unicode_ci default NULL,
  479. `special` tinyint(1) NOT NULL default '0',
  480. PRIMARY KEY (`permissionID`),
  481. UNIQUE KEY `key` (`key`)
  482. ) ENGINE=MyISAM AUTO_INCREMENT=49 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  483. LOCK TABLES `ha_permissions` WRITE;
  484. /*!40000 ALTER TABLE `ha_permissions` DISABLE KEYS */;
  485. INSERT INTO `ha_permissions` (`permission`,`key`,`category`,`special`)
  486. VALUES
  487. ('Allow Pages','pages','Pages',0),
  488. ('Add / edit pages','pages_edit','Pages',0),
  489. ('Delete pages','pages_delete','Pages',0),
  490. ('Access to all pages','pages_all','Pages',0),
  491. ('Allow Templates','pages_templates','Templates',0),
  492. ('Allow Web Forms','webforms','Web Forms',0),
  493. ('Delete tickets','webforms_tickets','Web Forms',0),
  494. ('Add / edit web forms','webforms_edit','Web Forms',0),
  495. ('Delete web forms','webforms_delete','Web Forms',0),
  496. ('Allow image uploads','images','Uploads',0),
  497. ('Allow file uploads','files','Uploads',0),
  498. ('Access to all images','images_all','Uploads',0),
  499. ('Access to all files','files_all','Uploads',0),
  500. ('Allow Users','users','Users',0),
  501. ('Add / edit users','users_edit','Users',0),
  502. ('Delete users','users_delete','Users',0),
  503. ('Import / export users','users_import','Users',0),
  504. ('Edit permission groups','users_groups','Users',0),
  505. ('Allow Blog','blog','Blog',0),
  506. ('Add / edit posts','blog_edit','Blog',0),
  507. ('Add / edit categories','blog_cats','Blog',0),
  508. ('Access to all posts','blog_all','Blog',0),
  509. ('Delete posts','blog_delete','Blog',0),
  510. ('Allow Shop','shop','Shop',0),
  511. ('Add / edit products','shop_edit','Shop',0),
  512. ('Delete products','shop_delete','Shop',0),
  513. ('Add / edit categories','shop_cats','Shop',0),
  514. ('Add / edit orders','shop_orders','Shop',0),
  515. ('Access to all products','shop_all','Shop',0),
  516. ('View subscriptions','shop_subscriptions','Shop',0),
  517. ('Add / edit shipping','shop_shipping','Shop',0),
  518. ('Add / edit reviews','shop_reviews','Shop',0),
  519. ('Add / edit discounts','shop_discounts','Shop',0),
  520. ('Add / edit upsells', 'shop_upsells', 'Shop', 0),
  521. ('Access Events','events','Events',0),
  522. ('Add / edit events','events_edit','Events',0),
  523. ('Delete events','events_delete','Events',0),
  524. ('Access Forums','forums','Forums',0),
  525. ('Add / edit boards','forums_edit','Forums',0),
  526. ('Delete boards','forums_delete','Forums',0),
  527. ('Add / edit categories','forums_cats','Forums',0),
  528. ('Allow Community','community','Community',0),
  529. ('Allow Wiki','wiki','Wiki',0),
  530. ('Add / edit pages','wiki_edit','Wiki',0),
  531. ('Add / edit categories','wiki_cats','Wiki',0),
  532. ('Emailer','emailer','Emailer',0),
  533. ('Add / edit campaigns','emailer_campaigns_edit','Emailer',0),
  534. ('Delete campaigns','emailer_campaigns_delete','Emailer',0),
  535. ('Add /edit emails','emailer_edit','Emailer',0),
  536. ('Delete emails','emailer_delete','Emailer',0),
  537. ('Add / edit templates','emailer_templates','Emailer',0),
  538. ('Add / edit lists','emailer_lists','Emailer',0);
  539. /*!40000 ALTER TABLE `ha_permissions` ENABLE KEYS */;
  540. UNLOCK TABLES;
  541. # Dump of table ha_ratings
  542. # ------------------------------------------------------------
  543. CREATE TABLE `ha_ratings` (
  544. `ratingID` int(11) NOT NULL auto_increment,
  545. `objectID` int(11) default NULL,
  546. `table` varchar(50) collate utf8_unicode_ci default NULL,
  547. `rating` int(11) default NULL,
  548. `userID` int(11) default NULL,
  549. `siteID` int(11) default NULL,
  550. PRIMARY KEY (`ratingID`)
  551. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  552. # Dump of table ha_shop_bands
  553. # ------------------------------------------------------------
  554. CREATE TABLE `ha_shop_bands` (
  555. `bandID` int(11) NOT NULL auto_increment,
  556. `bandName` varchar(100) collate utf8_unicode_ci default NULL,
  557. `multiplier` double default NULL,
  558. `siteID` int(11) default NULL,
  559. PRIMARY KEY (`bandID`)
  560. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  561. # Dump of table ha_shop_catmap
  562. # ------------------------------------------------------------
  563. CREATE TABLE `ha_shop_catmap` (
  564. `catID` int(11) NOT NULL DEFAULT '0',
  565. `productID` int(11) NOT NULL DEFAULT '0',
  566. `siteID` int(11) DEFAULT NULL,
  567. PRIMARY KEY (`catID`, `productID`)
  568. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  569. # Dump of table ha_shop_cats
  570. # ------------------------------------------------------------
  571. CREATE TABLE `ha_shop_cats` (
  572. `catID` int(11) unsigned NOT NULL auto_increment,
  573. `parentID` int(11) unsigned NOT NULL default '0',
  574. `catName` varchar(100) collate utf8_unicode_ci default NULL,
  575. `catSafe` varchar(100) collate utf8_unicode_ci default NULL,
  576. `description` text collate utf8_unicode_ci,
  577. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  578. `dateModified` timestamp NOT NULL default '0000-00-00 00:00:00',
  579. `catOrder` int(11) default NULL,
  580. `deleted` tinyint(1) unsigned NOT NULL default '0',
  581. `siteID` int(11) default NULL,
  582. PRIMARY KEY (`catID`)
  583. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  584. # Dump of table ha_shop_discounts
  585. # ------------------------------------------------------------
  586. CREATE TABLE `ha_shop_discounts` (
  587. `discountID` int(11) NOT NULL auto_increment,
  588. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  589. `expiryDate` timestamp NOT NULL default '0000-00-00 00:00:00',
  590. `code` varchar(50) collate utf8_unicode_ci default NULL,
  591. `discount` double default NULL,
  592. `type` enum('T','P','C') collate utf8_unicode_ci NOT NULL default 'T',
  593. `objectID` text collate utf8_unicode_ci,
  594. `modifier` enum('A','P') collate utf8_unicode_ci NOT NULL default 'A',
  595. `base` enum('T','P') collate utf8_unicode_ci NOT NULL default 'T',
  596. `siteID` int(11) default NULL,
  597. PRIMARY KEY (`discountID`)
  598. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  599. # Dump of table ha_shop_modifiers
  600. # ------------------------------------------------------------
  601. CREATE TABLE `ha_shop_modifiers` (
  602. `modifierID` int(11) NOT NULL auto_increment,
  603. `modifierName` varchar(100) collate utf8_unicode_ci default NULL,
  604. `bandID` int(11) default NULL,
  605. `multiplier` double default NULL,
  606. `siteID` int(11) default NULL,
  607. PRIMARY KEY (`modifierID`)
  608. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  609. # Dump of table ha_shop_orders
  610. # ------------------------------------------------------------
  611. CREATE TABLE `ha_shop_orders` (
  612. `orderID` int(11) unsigned NOT NULL auto_increment,
  613. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  614. `transactionID` int(11) NOT NULL default '0',
  615. `productID` int(11) NOT NULL default '0',
  616. `quantity` tinyint(4) NOT NULL default '0',
  617. `key` text collate utf8_unicode_ci,
  618. `siteID` int(11) default NULL,
  619. PRIMARY KEY (`orderID`)
  620. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  621. # Dump of table ha_shop_postages
  622. # ------------------------------------------------------------
  623. CREATE TABLE `ha_shop_postages` (
  624. `postageID` int(11) NOT NULL auto_increment,
  625. `total` double NOT NULL default '0',
  626. `cost` double NOT NULL default '0',
  627. `siteID` int(11) default NULL,
  628. PRIMARY KEY (`postageID`)
  629. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  630. # Dump of table ha_shop_products
  631. # ------------------------------------------------------------
  632. CREATE TABLE `ha_shop_products` (
  633. `productID` int(11) NOT NULL auto_increment,
  634. `catalogueID` varchar(100) collate utf8_unicode_ci default NULL,
  635. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  636. `productOrder` int(11) NOT NULL default '0',
  637. `productName` varchar(100) collate utf8_unicode_ci default NULL,
  638. `subtitle` varchar(100) collate utf8_unicode_ci default NULL,
  639. `description` text collate utf8_unicode_ci,
  640. `excerpt` text collate utf8_unicode_ci,
  641. `tags` varchar(250) collate utf8_unicode_ci default NULL,
  642. `price` double(10,2) NOT NULL default '0.00',
  643. `imageName` varchar(200) collate utf8_unicode_ci NOT NULL default 'noimage.gif',
  644. `status` enum('S','O','P','D') collate utf8_unicode_ci NOT NULL default 'S',
  645. `stock` int(11) unsigned NOT NULL default '1',
  646. `fileID` int(11) default NULL,
  647. `views` int(11) NOT NULL default '0',
  648. `featured` enum('Y','T','N') collate utf8_unicode_ci NOT NULL default 'N',
  649. `bandID` int(11) default NULL,
  650. `freePostage` tinyint(1) unsigned NOT NULL default '0',
  651. `userID` int(11) default NULL,
  652. `published` tinyint(1) unsigned NOT NULL default '1',
  653. `deleted` tinyint(1) unsigned NOT NULL default '0',
  654. `siteID` int(11) NOT NULL default '0',
  655. PRIMARY KEY (`productID`)
  656. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  657. # Dump of table ha_shop_reviews
  658. # ------------------------------------------------------------
  659. CREATE TABLE `ha_shop_reviews` (
  660. `reviewID` int(11) NOT NULL auto_increment,
  661. `productID` int(11) NOT NULL default '0',
  662. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  663. `rating` int(5) NOT NULL default '0',
  664. `review` text collate utf8_unicode_ci,
  665. `fullName` varchar(100) collate utf8_unicode_ci default NULL,
  666. `email` varchar(100) collate utf8_unicode_ci default NULL,
  667. `active` tinyint(1) NOT NULL default '1',
  668. `deleted` tinyint(1) unsigned NOT NULL default '0',
  669. `siteID` int(11) default NULL,
  670. PRIMARY KEY (`reviewID`)
  671. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  672. # Dump of table ha_shop_transactions
  673. # ------------------------------------------------------------
  674. CREATE TABLE `ha_shop_transactions` (
  675. `transactionID` int(11) unsigned NOT NULL auto_increment,
  676. `transactionCode` varchar(50) collate utf8_unicode_ci NOT NULL default '',
  677. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  678. `userID` int(11) NOT NULL default '0',
  679. `amount` double(10,2) NOT NULL default '0.00',
  680. `postage` double(10,2) default NULL,
  681. `paid` tinyint(1) unsigned NOT NULL default '0',
  682. `trackingStatus` enum('U','L','A','O','D') collate utf8_unicode_ci NOT NULL default 'U',
  683. `discounts` double(10,2) NOT NULL default '0.00',
  684. `donation` double(10,2) NOT NULL default '0.00',
  685. `tax` double(10,2) NOT NULL default '0.00',
  686. `discountCode` varchar(50) collate utf8_unicode_ci default NULL,
  687. `notes` text collate utf8_unicode_ci,
  688. `expiryDate` timestamp NOT NULL default '0000-00-00 00:00:00',
  689. `viewed` tinyint(1) unsigned NOT NULL default '0',
  690. `siteID` int(11) default NULL,
  691. PRIMARY KEY (`transactionID`),
  692. KEY `transactionCode` (`transactionCode`)
  693. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  694. # Dump of table ha_shop_upsells
  695. # ------------------------------------------------------------
  696. CREATE TABLE `ha_shop_upsells` (
  697. `upsellID` int(11) unsigned NOT NULL auto_increment,
  698. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  699. `dateModified` timestamp NULL default CURRENT_TIMESTAMP,
  700. `type` enum('V','N','P') collate utf8_unicode_ci NOT NULL default 'V',
  701. `value` double(10,2) default NULL,
  702. `numProducts` int(11) default NULL,
  703. `productIDs` varchar(200) collate utf8_unicode_ci default NULL,
  704. `productID` int(11) default NULL,
  705. `upsellOrder` int(11) default NULL,
  706. `remove` tinyint(1) unsigned NOT NULL default '0',
  707. `deleted` tinyint(1) unsigned NOT NULL default '0',
  708. `siteID` int(11) default NULL,
  709. PRIMARY KEY (`upsellID`)
  710. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  711. # Dump of table ha_shop_variations
  712. # ------------------------------------------------------------
  713. CREATE TABLE `ha_shop_variations` (
  714. `variationID` int(11) unsigned NOT NULL auto_increment,
  715. `variation` varchar(50) collate utf8_unicode_ci default NULL,
  716. `price` double(10,2) NOT NULL default '0.00',
  717. `type` int(11) default NULL,
  718. `productID` int(11) default NULL,
  719. `siteID` int(11) default NULL,
  720. PRIMARY KEY (`variationID`)
  721. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  722. # Dump of table ha_sites
  723. # ------------------------------------------------------------
  724. CREATE TABLE `ha_sites` (
  725. `siteID` int(11) NOT NULL auto_increment,
  726. `siteDomain` varchar(100) collate utf8_unicode_ci default NULL,
  727. `altDomain` varchar(100) collate utf8_unicode_ci default NULL,
  728. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  729. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  730. `siteName` varchar(100) collate utf8_unicode_ci default NULL,
  731. `siteEmail` varchar(100) collate utf8_unicode_ci default NULL,
  732. `siteURL` varchar(100) collate utf8_unicode_ci default NULL,
  733. `siteTel` varchar(100) collate utf8_unicode_ci default NULL,
  734. `siteAddress` text collate utf8_unicode_ci,
  735. `siteCountry` varchar(100) collate utf8_unicode_ci default NULL,
  736. `groupID` int(11) default NULL,
  737. `plan` int(11) NOT NULL default '0',
  738. `quota` int(11) unsigned NOT NULL default '0',
  739. `paging` int(11) NOT NULL default '20',
  740. `theme` varchar(50) collate utf8_unicode_ci default NULL,
  741. `shopEmail` varchar(100) collate utf8_unicode_ci default NULL,
  742. `shopItemsPerPage` int(11) NOT NULL default '6',
  743. `shopItemsPerRow` int(11) NOT NULL default '3',
  744. `shopFreePostage` tinyint(1) NOT NULL default '0',
  745. `shopShippingTable` varchar(250) collate utf8_unicode_ci default NULL,
  746. `shopFreePostageRate` int(11) default NULL,
  747. `shopGateway` varchar(50) collate utf8_unicode_ci NOT NULL default 'paypal',
  748. `shopVariation1` varchar(50) collate utf8_unicode_ci default NULL,
  749. `shopVariation2` varchar(50) collate utf8_unicode_ci default NULL,
  750. `shopVariation3` varchar(50) collate utf8_unicode_ci default NULL,
  751. `shopStockControl` tinyint(1) NOT NULL default '0',
  752. `shopTax` tinyint(2) NOT NULL default '0',
  753. `shopTaxRate` double NOT NULL default '0',
  754. `shopTaxState` varchar(3) collate utf8_unicode_ci default NULL,
  755. `shopAPIKey` varchar(100) collate utf8_unicode_ci default NULL,
  756. `shopAPIUser` varchar(50) collate utf8_unicode_ci default NULL,
  757. `shopAPIPass` varchar(50) collate utf8_unicode_ci default NULL,
  758. `shopVendor` varchar(50) collate utf8_unicode_ci default NULL,
  759. `emailerEmail` varchar(100) collate utf8_unicode_ci default NULL,
  760. `emailerName` varchar(100) collate utf8_unicode_ci default NULL,
  761. `currency` varchar(4) collate utf8_unicode_ci NOT NULL default 'USD',
  762. `dateFmt` varchar(50) collate utf8_unicode_ci default NULL,
  763. `dateOrder` enum('DM','MD') collate utf8_unicode_ci NOT NULL default 'DM',
  764. `headlines` int(11) NOT NULL default '3',
  765. `clientID` int(11) default NULL,
  766. `emailHeader` text collate utf8_unicode_ci,
  767. `emailFooter` text collate utf8_unicode_ci,
  768. `emailTicket` text collate utf8_unicode_ci,
  769. `emailOrder` text collate utf8_unicode_ci,
  770. `emailAccount` text collate utf8_unicode_ci,
  771. `emailDispatch` text collate utf8_unicode_ci,
  772. `emailDonation` text collate utf8_unicode_ci,
  773. `emailSubscription` text collate utf8_unicode_ci,
  774. `timezone` varchar(5) collate utf8_unicode_ci NOT NULL default 'UTC',
  775. `subscriptionAction` int(11) default NULL,
  776. `activation` tinyint(1) NOT NULL default '0',
  777. `active` tinyint(1) NOT NULL default '1',
  778. PRIMARY KEY (`siteID`)
  779. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  780. # Dump of table ha_sub_payments
  781. # ------------------------------------------------------------
  782. CREATE TABLE `ha_sub_payments` (
  783. `paymentID` int(11) NOT NULL auto_increment,
  784. `referenceID` char(50) collate utf8_unicode_ci default NULL,
  785. `dateCreated` timestamp NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  786. `amount` double default NULL,
  787. `siteID` int(11) default NULL,
  788. PRIMARY KEY (`paymentID`)
  789. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=FIXED;
  790. # Dump of table ha_subscribers
  791. # ------------------------------------------------------------
  792. CREATE TABLE `ha_subscribers` (
  793. `subscriberID` int(11) NOT NULL auto_increment,
  794. `subscriptionID` int(11) default NULL,
  795. `referenceID` varchar(50) collate utf8_unicode_ci default NULL,
  796. `dateCreated` timestamp NULL default '0000-00-00 00:00:00',
  797. `lastPayment` timestamp NULL default '0000-00-00 00:00:00',
  798. `fullName` varchar(50) collate utf8_unicode_ci default NULL,
  799. `email` varchar(100) collate utf8_unicode_ci default NULL,
  800. `address` text collate utf8_unicode_ci,
  801. `postcode` varchar(10) collate utf8_unicode_ci default NULL,
  802. `country` varchar(100) collate utf8_unicode_ci default NULL,
  803. `userID` int(11) default NULL,
  804. `active` tinyint(1) NOT NULL default '1',
  805. `siteID` int(11) default NULL,
  806. PRIMARY KEY (`subscriberID`)
  807. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  808. # Dump of table ha_subscriptions
  809. # ------------------------------------------------------------
  810. CREATE TABLE `ha_subscriptions` (
  811. `subscriptionID` int(11) NOT NULL auto_increment,
  812. `subscriptionRef` varchar(100) collate utf8_unicode_ci default NULL,
  813. `cgCode` varchar(100) collate utf8_unicode_ci default NULL,
  814. `cgProduct` varchar(100) collate utf8_unicode_ci default NULL,
  815. `subscriptionName` varchar(50) collate utf8_unicode_ci default NULL,
  816. `dateCreated` timestamp NULL default '0000-00-00 00:00:00',
  817. `dateModified` timestamp NOT NULL default '0000-00-00 00:00:00',
  818. `description` text collate utf8_unicode_ci,
  819. `price` double default NULL,
  820. `currency` varchar(3) collate utf8_unicode_ci default NULL,
  821. `term` enum('M','Y') collate utf8_unicode_ci NOT NULL default 'M',
  822. `active` tinyint(1) NOT NULL default '1',
  823. `deleted` tinyint(1) NOT NULL default '0',
  824. `siteID` int(11) default NULL,
  825. PRIMARY KEY (`subscriptionID`)
  826. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  827. # Dump of table ha_tags
  828. # ------------------------------------------------------------
  829. CREATE TABLE `ha_tags` (
  830. `id` int(11) NOT NULL auto_increment,
  831. `safe_tag` varchar(30) collate utf8_unicode_ci NOT NULL default '',
  832. `tag` varchar(50) collate utf8_unicode_ci NOT NULL default '',
  833. PRIMARY KEY (`id`),
  834. UNIQUE KEY `safe_tag` (`safe_tag`)
  835. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  836. # Dump of table ha_tags_ref
  837. # ------------------------------------------------------------
  838. CREATE TABLE `ha_tags_ref` (
  839. `tag_id` int(10) unsigned NOT NULL default '0',
  840. `row_id` int(10) unsigned NOT NULL default '0',
  841. `date` timestamp NOT NULL default '0000-00-00 00:00:00',
  842. `table` varchar(20) collate utf8_unicode_ci NOT NULL default '',
  843. `siteID` int(11) default NULL
  844. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  845. # Dump of table ha_template_versions
  846. # ------------------------------------------------------------
  847. CREATE TABLE `ha_template_versions` (
  848. `versionID` int(11) NOT NULL auto_increment,
  849. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  850. `objectID` int(11) default NULL,
  851. `userID` int(11) default NULL,
  852. `body` text collate utf8_unicode_ci,
  853. `siteID` int(11) default NULL,
  854. PRIMARY KEY (`versionID`)
  855. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  856. # Dump of table ha_templates
  857. # ------------------------------------------------------------
  858. CREATE TABLE `ha_templates` (
  859. `templateID` int(11) NOT NULL auto_increment,
  860. `templateName` varchar(100) collate utf8_unicode_ci default NULL,
  861. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  862. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  863. `versionID` int(11) NOT NULL default '0',
  864. `modulePath` varchar(100) collate utf8_unicode_ci NOT NULL default '',
  865. `deleted` tinyint(1) unsigned NOT NULL default '0',
  866. `siteID` int(11) NOT NULL default '0',
  867. PRIMARY KEY (`templateID`)
  868. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  869. # Dump of table ha_tickets
  870. # ------------------------------------------------------------
  871. CREATE TABLE `ha_tickets` (
  872. `ticketID` int(11) NOT NULL auto_increment,
  873. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  874. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  875. `formName` varchar(200) collate utf8_unicode_ci default NULL,
  876. `subject` varchar(100) collate utf8_unicode_ci default NULL,
  877. `fullName` varchar(100) collate utf8_unicode_ci default NULL,
  878. `email` varchar(100) collate utf8_unicode_ci default NULL,
  879. `body` text collate utf8_unicode_ci,
  880. `closed` tinyint(1) NOT NULL default '0',
  881. `notes` text collate utf8_unicode_ci,
  882. `deleted` tinyint(1) unsigned NOT NULL default '0',
  883. `siteID` int(11) default NULL,
  884. `viewed` tinyint(1) NOT NULL default '0',
  885. PRIMARY KEY (`ticketID`)
  886. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  887. # Dump of table ha_tracking
  888. # ------------------------------------------------------------
  889. CREATE TABLE `ha_tracking` (
  890. `trackingID` int(11) NOT NULL auto_increment,
  891. `date` timestamp NULL default '0000-00-00 00:00:00',
  892. `userKey` varchar(32) collate utf8_unicode_ci default NULL,
  893. `ipAddress` varchar(16) collate utf8_unicode_ci default NULL,
  894. `userAgent` varchar(100) collate utf8_unicode_ci default NULL,
  895. `referer` varchar(200) collate utf8_unicode_ci default NULL,
  896. `views` int(11) NOT NULL default '0',
  897. `lastPage` varchar(250) collate utf8_unicode_ci default NULL,
  898. `userdata` varchar(250) collate utf8_unicode_ci NOT NULL default '',
  899. `siteID` int(11) default '0',
  900. PRIMARY KEY (`trackingID`)
  901. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  902. # Dump of table ha_users
  903. # ------------------------------------------------------------
  904. CREATE TABLE `ha_users` (
  905. `userID` int(11) NOT NULL auto_increment,
  906. `username` varchar(100) collate utf8_unicode_ci NOT NULL default '',
  907. `password` varchar(32) collate utf8_unicode_ci default NULL,
  908. `groupID` int(11) NOT NULL default '0',
  909. `email` varchar(100) collate utf8_unicode_ci default NULL,
  910. `subscription` enum('Y','E','P','N') collate utf8_unicode_ci NOT NULL default 'Y',
  911. `subscribed` tinyint(1) unsigned NOT NULL default '0',
  912. `plan` int(11) NOT NULL default '0',
  913. `bounced` tinyint(1) default '0',
  914. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  915. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  916. `displayName` varchar(100) collate utf8_unicode_ci default NULL,
  917. `firstName` varchar(50) collate utf8_unicode_ci default NULL,
  918. `lastName` varchar(50) collate utf8_unicode_ci default NULL,
  919. `address1` varchar(100) collate utf8_unicode_ci default NULL,
  920. `address2` varchar(100) collate utf8_unicode_ci default NULL,
  921. `address3` varchar(100) collate utf8_unicode_ci default NULL,
  922. `city` varchar(100) collate utf8_unicode_ci default NULL,
  923. `state` varchar(50) collate utf8_unicode_ci default NULL,
  924. `postcode` varchar(8) collate utf8_unicode_ci default NULL,
  925. `country` varchar(100) collate utf8_unicode_ci default NULL,
  926. `currency` varchar(4) collate utf8_unicode_ci NOT NULL default 'USD',
  927. `billingAddress1` varchar(100) collate utf8_unicode_ci default NULL,
  928. `billingAddress2` varchar(100) collate utf8_unicode_ci default NULL,
  929. `billingAddress3` varchar(100) collate utf8_unicode_ci default NULL,
  930. `billingCity` varchar(100) collate utf8_unicode_ci default NULL,
  931. `billingState` varchar(50) collate utf8_unicode_ci default NULL,
  932. `billingPostcode` varchar(8) collate utf8_unicode_ci default NULL,
  933. `billingCountry` varchar(100) collate utf8_unicode_ci default NULL,
  934. `phone` varchar(20) collate utf8_unicode_ci default NULL,
  935. `avatar` varchar(50) collate utf8_unicode_ci default NULL,
  936. `signature` text collate utf8_unicode_ci,
  937. `bio` text collate utf8_unicode_ci NOT NULL,
  938. `companyName` varchar(100) collate utf8_unicode_ci default NULL,
  939. `companyEmail` varchar(100) collate utf8_unicode_ci default NULL,
  940. `companyWebsite` varchar(100) collate utf8_unicode_ci default NULL,
  941. `companyDescription` text collate utf8_unicode_ci,
  942. `companyLogo` varchar(50) collate utf8_unicode_ci default NULL,
  943. `language` varchar(50) collate utf8_unicode_ci NOT NULL default 'english',
  944. `posts` int(11) unsigned NOT NULL default '0',
  945. `kudos` int(11) NOT NULL default '0',
  946. `notifications` tinyint(1) unsigned NOT NULL default '1',
  947. `privacy` enum('V','F','H') collate utf8_unicode_ci NOT NULL default 'V',
  948. `resetkey` varchar(32) collate utf8_unicode_ci default NULL,
  949. `lastLogin` timestamp NOT NULL default '0000-00-00 00:00:00',
  950. `custom1` varchar(250) collate utf8_unicode_ci default NULL,
  951. `custom2` varchar(250) collate utf8_unicode_ci default NULL,
  952. `custom3` varchar(250) collate utf8_unicode_ci default NULL,
  953. `custom4` text collate utf8_unicode_ci,
  954. `active` tinyint(1) unsigned NOT NULL default '1',
  955. `siteID` int(11) default NULL,
  956. PRIMARY KEY (`userID`),
  957. KEY `emailindex` (`email`)
  958. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  959. LOCK TABLES `ha_users` WRITE;
  960. /*!40000 ALTER TABLE `ha_users` DISABLE KEYS */;
  961. INSERT INTO `ha_users` (`userID`,`username`,`password`,`groupID`,`email`,`subscription`,`subscribed`,`bounced`,`dateCreated`,`dateModified`,`displayName`,`firstName`,`lastName`,`address1`,`address2`,`address3`,`city`,`state`,`postcode`,`country`,`currency`,`billingAddress1`,`billingAddress2`,`billingAddress3`,`billingCity`,`billingState`,`billingPostcode`,`billingCountry`,`phone`,`avatar`,`signature`,`bio`,`companyName`,`companyEmail`,`companyWebsite`,`companyDescription`,`companyLogo`,`language`,`posts`,`kudos`,`notifications`,`privacy`,`resetkey`,`lastLogin`,`custom1`,`custom2`,`custom3`,`custom4`,`active`,`siteID`)
  962. VALUES
  963. (1,'superuser','f35364bc808b079853de5a1e343e7159',-1,'','Y',0,0,NOW(),NOW(),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'USD',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL,NULL,NULL,'english',0,0,1,'V',NULL,'0000-00-00 00:00:00',NULL,NULL,NULL,NULL,1,NULL);
  964. /*!40000 ALTER TABLE `ha_users` ENABLE KEYS */;
  965. UNLOCK TABLES;
  966. # Dump of table ha_web_forms
  967. # ------------------------------------------------------------
  968. CREATE TABLE `ha_web_forms` (
  969. `formID` int(11) NOT NULL auto_increment,
  970. `dateCreated` timestamp NULL default '0000-00-00 00:00:00',
  971. `dateModified` timestamp NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  972. `formName` varchar(200) collate utf8_unicode_ci default NULL,
  973. `formRef` varchar(200) collate utf8_unicode_ci default NULL,
  974. `fieldSet` tinyint(4) unsigned NOT NULL default '0',
  975. `captcha` tinyint(1) unsigned NOT NULL default '0',
  976. `account` tinyint(1) NOT NULL default '0',
  977. `groupID` int(11) default NULL,
  978. `outcomeMessage` text collate utf8_unicode_ci,
  979. `outcomeEmails` text collate utf8_unicode_ci,
  980. `outcomeRedirect` varchar(200) collate utf8_unicode_ci default NULL,
  981. `fileTypes` varchar(100) collate utf8_unicode_ci default NULL,
  982. `deleted` tinyint(1) unsigned NOT NULL default '0',
  983. `siteID` int(11) default NULL,
  984. PRIMARY KEY (`formID`)
  985. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  986. # Dump of table ha_wiki
  987. # ------------------------------------------------------------
  988. CREATE TABLE `ha_wiki` (
  989. `pageID` int(11) NOT NULL auto_increment,
  990. `pageName` varchar(100) collate utf8_unicode_ci default NULL,
  991. `versionID` int(11) default NULL,
  992. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  993. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  994. `userID` int(11) default NULL,
  995. `catID` int(11) default NULL,
  996. `uri` varchar(100) character set utf8 default NULL,
  997. `active` tinyint(1) unsigned NOT NULL default '1',
  998. `groupID` int(11) NOT NULL default '0',
  999. `deleted` tinyint(1) unsigned NOT NULL default '0',
  1000. `siteID` int(11) default NULL,
  1001. PRIMARY KEY (`pageID`)
  1002. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  1003. # Dump of table ha_wiki_cats
  1004. # ------------------------------------------------------------
  1005. CREATE TABLE `ha_wiki_cats` (
  1006. `catID` int(11) unsigned NOT NULL auto_increment,
  1007. `parentID` int(11) unsigned NOT NULL default '0',
  1008. `catName` varchar(50) collate utf8_unicode_ci default NULL,
  1009. `dateCreated` timestamp NOT NULL default '0000-00-00 00:00:00',
  1010. `dateModified` timestamp NOT NULL default CURRENT_TIMESTAMP,
  1011. `description` text collate utf8_unicode_ci,
  1012. `catOrder` int(11) default NULL,
  1013. `deleted` tinyint(1) unsigned NOT NULL default '0',
  1014. `siteID` int(11) default NULL,
  1015. PRIMARY KEY (`catID`)
  1016. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  1017. # Dump of table ha_wiki_versions
  1018. # ------------------------------------------------------------
  1019. CREATE TABLE `ha_wiki_versions` (
  1020. `versionID` int(11) NOT NULL auto_increment,
  1021. `pageID` int(11) NOT NULL default '0',
  1022. `dateCreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  1023. `userID` int(11) default NULL,
  1024. `body` text collate utf8_unicode_ci,
  1025. `notes` varchar(250) collate utf8_unicode_ci default NULL,
  1026. `siteID` int(11) default NULL,
  1027. PRIMARY KEY (`versionID`)
  1028. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  1029. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  1030. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  1031. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  1032. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  1033. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  1034. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;