Просмотр файла base.sql

Размер файла: 2.79Kb
  1. CREATE TABLE IF NOT EXISTS `ban` (
  2. `id` int(255) NOT NULL auto_increment,
  3. `user` int(255) NOT NULL,
  4. `time` int(255) NOT NULL,
  5. `why` text collate utf8_unicode_ci NOT NULL,
  6. PRIMARY KEY (`id`)
  7. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  8.  
  9. CREATE TABLE IF NOT EXISTS `forum` (
  10. `id` int(255) NOT NULL auto_increment,
  11. `name` text collate utf8_unicode_ci NOT NULL,
  12. `msg` text collate utf8_unicode_ci NOT NULL,
  13. `user` int(255) NOT NULL,
  14. `time` int(255) NOT NULL,
  15. `open` int(1) NOT NULL default '1',
  16. `up` int(1) NOT NULL,
  17. `razdel` int(255) NOT NULL default '0',
  18. PRIMARY KEY (`id`)
  19. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  20.  
  21. CREATE TABLE IF NOT EXISTS `forum_komm` (
  22. `id` int(255) NOT NULL auto_increment,
  23. `msg` text collate utf8_unicode_ci NOT NULL,
  24. `user` int(255) NOT NULL,
  25. `time` int(255) NOT NULL,
  26. `theme` int(255) NOT NULL,
  27. PRIMARY KEY (`id`)
  28. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  29.  
  30. CREATE TABLE IF NOT EXISTS `forum_t` (
  31. `id` int(255) NOT NULL auto_increment,
  32. `name` text collate utf8_unicode_ci NOT NULL,
  33. `opis` text collate utf8_unicode_ci NOT NULL,
  34. `razdel` int(15) NOT NULL,
  35. PRIMARY KEY (`id`)
  36. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  37.  
  38. CREATE TABLE IF NOT EXISTS `guestbook` (
  39. `id` int(255) NOT NULL auto_increment,
  40. `user` int(255) NOT NULL,
  41. `msg` varchar(512) collate utf8_unicode_ci default '-',
  42. `time` int(255) NOT NULL,
  43. PRIMARY KEY (`id`)
  44. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  45.  
  46. CREATE TABLE IF NOT EXISTS `jurnal` (
  47. `id` int(255) NOT NULL auto_increment,
  48. `time` int(255) NOT NULL,
  49. `msg` text collate utf8_unicode_ci NOT NULL,
  50. `user` int(255) NOT NULL,
  51. `read` int(1) NOT NULL default '0',
  52. PRIMARY KEY (`id`)
  53. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  54.  
  55. CREATE TABLE IF NOT EXISTS `mail` (
  56. `id` int(255) NOT NULL auto_increment,
  57. `from` int(255) NOT NULL,
  58. `to` int(255) NOT NULL,
  59. `msg` text collate utf8_unicode_ci NOT NULL,
  60. `time` int(255) NOT NULL,
  61. `read` int(1) NOT NULL default '0',
  62. PRIMARY KEY (`id`)
  63. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  64.  
  65. CREATE TABLE IF NOT EXISTS `user` (
  66. `id` int(255) NOT NULL auto_increment,
  67. `name` varchar(15) collate utf8_unicode_ci NOT NULL,
  68. `pass` text collate utf8_unicode_ci NOT NULL,
  69. `reg` int(255) NOT NULL,
  70. `gorod` text collate utf8_unicode_ci NOT NULL,
  71. `email` text collate utf8_unicode_ci NOT NULL,
  72. `tel` varchar(11) collate utf8_unicode_ci NOT NULL,
  73. `tsel` text collate utf8_unicode_ci NOT NULL,
  74. `zhel` text collate utf8_unicode_ci NOT NULL,
  75. `aname` text collate utf8_unicode_ci NOT NULL,
  76. `click` int(255) NOT NULL,
  77. `admin` int(1) NOT NULL default '0',
  78. `pol` int(1) NOT NULL default '1',
  79. PRIMARY KEY (`id`)
  80. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;