Редакция 18 | Содержимое файла | Сравнить с предыдущей | Последнее изменение | Открыть журнал | RSS
Редакция | Автор | № строки | Строка |
---|---|---|---|
7 | alex-w | 1 | -- phpMyAdmin SQL Dump |
2 | -- version 3.0.0-alpha |
||
3 | -- http://www.phpmyadmin.net |
||
4 | -- |
||
5 | -- Хост: localhost |
||
36 | alex-w | 6 | -- Время создания: Май 30 2009 г., 21:18 |
7 | alex-w | 7 | -- Версия сервера: 5.0.51 |
8 | -- Версия PHP: 5.2.6-1+lenny3 |
||
9 | |||
10 | SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
||
11 | |||
12 | |||
13 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
||
14 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
||
15 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
||
16 | /*!40101 SET NAMES utf8 */; |
||
17 | |||
18 | -- |
||
19 | -- База данных: `kbase` |
||
20 | -- |
||
21 | |||
22 | -- -------------------------------------------------------- |
||
23 | |||
24 | -- |
||
36 | alex-w | 25 | -- Структура таблицы `groups` |
26 | -- |
||
27 | |||
28 | CREATE TABLE IF NOT EXISTS `groups` ( |
||
29 | `group_id` int(2) NOT NULL auto_increment, |
||
30 | `group_name` varchar(25) NOT NULL, |
||
31 | PRIMARY KEY (`group_id`) |
||
32 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Группы пользователей' AUTO_INCREMENT=1 ; |
||
33 | |||
34 | -- -------------------------------------------------------- |
||
35 | |||
36 | -- |
||
18 | alex-w | 37 | -- Структура таблицы `members` |
7 | alex-w | 38 | -- |
39 | |||
18 | alex-w | 40 | CREATE TABLE IF NOT EXISTS `members` ( |
41 | `user_id` int(10) unsigned NOT NULL auto_increment, |
||
42 | `login` varchar(150) NOT NULL, |
||
43 | `passwd` varchar(35) NOT NULL, |
||
44 | `realname` varchar(150) NOT NULL, |
||
45 | `status` int(2) NOT NULL, |
||
46 | `registered` datetime NOT NULL, |
||
47 | PRIMARY KEY (`user_id`), |
||
48 | KEY `status` (`status`) |
||
36 | alex-w | 49 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Пользователи' AUTO_INCREMENT=2 ; |
7 | alex-w | 50 | |
51 | -- -------------------------------------------------------- |
||
52 | |||
53 | -- |
||
18 | alex-w | 54 | -- Структура таблицы `pages` |
7 | alex-w | 55 | -- |
56 | |||
18 | alex-w | 57 | CREATE TABLE IF NOT EXISTS `pages` ( |
58 | `page_id` int(10) unsigned NOT NULL auto_increment, |
||
59 | `page_url` varchar(35) NOT NULL, |
||
60 | `page_create` datetime NOT NULL, |
||
61 | `page_title` varchar(75) NOT NULL, |
||
62 | `page_short` varchar(255) NOT NULL, |
||
63 | `page_text` text NOT NULL, |
||
64 | `page_owner` int(10) NOT NULL, |
||
65 | `page_editor` int(10) NOT NULL, |
||
66 | PRIMARY KEY (`page_id`), |
||
67 | KEY `page_owner` (`page_owner`), |
||
68 | KEY `page_create` (`page_create`), |
||
69 | KEY `page_editor` (`page_editor`), |
||
70 | KEY `page_url` (`page_url`) |
||
36 | alex-w | 71 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Страницы' AUTO_INCREMENT=2 ; |
7 | alex-w | 72 | |
73 | -- -------------------------------------------------------- |
||
74 | |||
75 | -- |
||
18 | alex-w | 76 | -- Структура таблицы `pages_revision` |
7 | alex-w | 77 | -- |
78 | |||
18 | alex-w | 79 | CREATE TABLE IF NOT EXISTS `pages_revision` ( |
80 | `id` int(10) unsigned NOT NULL, |
||
81 | `page_id` int(10) unsigned NOT NULL, |
||
82 | `page_revision` int(5) NOT NULL, |
||
83 | `page_create` datetime NOT NULL, |
||
84 | `page_title` varchar(75) NOT NULL, |
||
85 | `page_short` varchar(255) NOT NULL, |
||
86 | `page_text` text NOT NULL, |
||
87 | `page_editor` int(10) unsigned NOT NULL, |
||
88 | PRIMARY KEY (`id`), |
||
89 | KEY `page_id` (`page_id`,`page_editor`), |
||
90 | KEY `page_revision` (`page_revision`) |
||
91 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Ревизии'; |
||
7 | alex-w | 92 | |
93 | -- -------------------------------------------------------- |
||
94 | |||
95 | -- |
||
18 | alex-w | 96 | -- Структура таблицы `settings` |
7 | alex-w | 97 | -- |
98 | |||
18 | alex-w | 99 | CREATE TABLE IF NOT EXISTS `settings` ( |
100 | `opt_id` int(5) NOT NULL auto_increment, |
||
101 | `opt_name` varchar(25) NOT NULL, |
||
102 | `opt_value` varchar(25) NOT NULL, |
||
103 | `opt_hname` varchar(25) NOT NULL, |
||
104 | PRIMARY KEY (`opt_id`) |
||
105 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Настройки' AUTO_INCREMENT=1 ; |
||
7 | alex-w | 106 | |
36 | alex-w | 107 | -- -------------------------------------------------------- |
108 | |||
7 | alex-w | 109 | -- |
36 | alex-w | 110 | -- Структура таблицы `status` |
7 | alex-w | 111 | -- |
112 | |||
36 | alex-w | 113 | CREATE TABLE IF NOT EXISTS `status` ( |
114 | `status_id` int(2) NOT NULL auto_increment, |
||
115 | `status_name` varchar(25) NOT NULL, |
||
116 | PRIMARY KEY (`status_id`) |
||
117 | ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Статусы' AUTO_INCREMENT=1 ; |