-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNew Project 20131221 0049.sql
184 lines (145 loc) · 4.82 KB
/
New Project 20131221 0049.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version 5.5.27
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
--
-- Create schema facetimemediablog
--
CREATE DATABASE IF NOT EXISTS facetimemediablog;
USE facetimemediablog;
--
-- Definition of table `categories`
--
DROP TABLE IF EXISTS `categories`;
CREATE TABLE `categories` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(250) DEFAULT '',
`body` longtext,
`show_in_list` tinyint(1) DEFAULT '1',
`list_order` int(11) DEFAULT '0',
`clean` varchar(128) DEFAULT '',
`url` varchar(128) DEFAULT '',
`user_id` int(11) DEFAULT '0',
`parent_id` int(11) DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `categories`
--
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
--
-- Definition of table `groups`
--
DROP TABLE IF EXISTS `groups`;
CREATE TABLE `groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `groups`
--
/*!40000 ALTER TABLE `groups` DISABLE KEYS */;
INSERT INTO `groups` (`id`,`name`) VALUES
(1,'Admin'),
(2,'Member'),
(3,'Guest'),
(4,'Friend');
/*!40000 ALTER TABLE `groups` ENABLE KEYS */;
--
-- Definition of table `post_attributes`
--
DROP TABLE IF EXISTS `post_attributes`;
CREATE TABLE `post_attributes` (
`post_id` int(11) NOT NULL,
`name` varchar(100) NOT NULL DEFAULT '',
`value` longtext,
PRIMARY KEY (`post_id`,`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `post_attributes`
--
/*!40000 ALTER TABLE `post_attributes` DISABLE KEYS */;
/*!40000 ALTER TABLE `post_attributes` ENABLE KEYS */;
--
-- Definition of table `posts`
--
DROP TABLE IF EXISTS `posts`;
CREATE TABLE `posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`feather` varchar(32) DEFAULT '',
`clean` varchar(128) DEFAULT '',
`url` varchar(128) DEFAULT '',
`pinned` tinyint(1) DEFAULT '0',
`status` varchar(32) DEFAULT 'public',
`user_id` int(11) DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `posts`
--
/*!40000 ALTER TABLE `posts` DISABLE KEYS */;
/*!40000 ALTER TABLE `posts` ENABLE KEYS */;
--
-- Definition of table `sessions`
--
DROP TABLE IF EXISTS `sessions`;
CREATE TABLE `sessions` (
`id` varchar(40) NOT NULL DEFAULT '',
`data` longtext,
`user_id` int(11) DEFAULT '0',
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sessions`
--
/*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
/*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
--
-- Definition of table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(64) NOT NULL,
`password` varchar(60) NOT NULL,
`fname` varchar(250) NOT NULL,
`lname` varchar(250) NOT NULL,
`email` varchar(128) NOT NULL,
`website` varchar(128) DEFAULT '',
`group_id` int(11) NOT NULL DEFAULT '0',
`joining_date` datetime DEFAULT NULL,
`modification_date` datetime DEFAULT NULL,
`isActive` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`id`,`username`,`password`,`fname`,`lname`,`email`,`website`,`group_id`,`joining_date`,`modification_date`,`isActive`) VALUES
(3,'zohaibmir','mir.mir','Zohaib','Mir','[email protected]','www.zafrax.com',1,'2012-11-14 20:42:50','2012-11-14 20:42:50',1);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;