A tumblelog CMS built on AJAX, PHP and MySQL.

gelato_db.sql 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. -- DB Gelato CMS v0.85
  2. CREATE TABLE `gel_data` (
  3. `id_post` int(11) NOT NULL auto_increment,
  4. `title` text NULL,
  5. `url` varchar(250) default NULL,
  6. `description` text NULL,
  7. `type` tinyint(4) NOT NULL default '1',
  8. `date` datetime NOT NULL,
  9. `id_user` int(10) NOT NULL,
  10. PRIMARY KEY (`id_post`)
  11. ) ENGINE = MYISAM ;
  12. CREATE TABLE `gel_users` (
  13. `id_user` int(10) unsigned NOT NULL auto_increment,
  14. `name` varchar(100) default NULL,
  15. `login` varchar(100) NOT NULL default '',
  16. `password` varchar(64) NOT NULL default '',
  17. `email` varchar(100) default NULL,
  18. `website` varchar(150) default NULL,
  19. `about` text,
  20. PRIMARY KEY (`id_user`)
  21. ) ENGINE = MYISAM ;
  22. CREATE TABLE `gel_config` (
  23. `posts_limit` int(3) NOT NULL,
  24. `title` varchar(250) NOT NULL,
  25. `description` text NOT NULL,
  26. `lang` varchar(10) NOT NULL,
  27. `template` varchar(100) NOT NULL,
  28. `url_installation` varchar(250) NOT NULL,
  29. PRIMARY KEY (`title`)
  30. ) ENGINE = MYISAM ;
  31. CREATE TABLE `gel_options` (
  32. `name` varchar(100) NOT NULL,
  33. `val` varchar(255) NOT NULL,
  34. PRIMARY KEY (`name`)
  35. ) ENGINE = MYISAM ;
  36. CREATE TABLE `gel_comments` (
  37. `id_comment` int(11) NOT NULL auto_increment,
  38. `id_post` int(11) NOT NULL,
  39. `username` varchar(50) NOT NULL,
  40. `email` varchar(100) NOT NULL,
  41. `web` varchar(250) default NULL,
  42. `content` text NOT NULL,
  43. `ip_user` varchar(50) NOT NULL,
  44. `comment_date` datetime NOT NULL,
  45. `spam` tinyint(4) NOT NULL,
  46. PRIMARY KEY (`id_comment`)
  47. ) ENGINE = MYISAM ;
  48. -- Example data for table `gel_config`
  49. INSERT INTO `gel_config` VALUES (10, 'Tumble title', 'tumble description', 'en', 'tumblr', 'http://localhost/gelato');
  50. -- Example data for table `gel_users`
  51. -- The password is "demo" without the "
  52. INSERT INTO `gel_users` VALUES (1, 'System administrator', 'admin', 'fe01ce2a7fbac8fafaed7c982a04e229', 'correo@correo.com', 'page', 'about');
  53. -- Example data for table `gel_options`
  54. INSERT INTO `gel_options` VALUES ('url_friendly', '1');
  55. INSERT INTO `gel_options` VALUES ('rich_text', '0');