View difference between Paste ID: RtK2uYQb and F9qX8MXx
SHOW: | | - or go back to the newest paste.
1
-- phpMyAdmin SQL Dump
2
-- version 4.0.1
3
-- http://www.phpmyadmin.net
4
--
5
-- Host: localhost
6-
-- Generation Time: Jan 09, 2014 at 11:05 PM
6+
-- Generation Time: Jan 14, 2014 at 12:48 PM
7
-- Server version: 5.1.62-0ubuntu0.10.04.1
8
-- PHP Version: 5.4.15-1~lucid+1
9
10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11
SET time_zone = "+00:00";
12
13
--
14
-- Database: `open`
15
--
16
17
-- --------------------------------------------------------
18
19
--
20
-- Table structure for table `chat`
21
--
22
23
CREATE TABLE IF NOT EXISTS `chat` (
24
  `id` int(11) NOT NULL AUTO_INCREMENT,
25
  `uid` int(11) NOT NULL,
26
  `fid` int(11) NOT NULL,
27
  `msg` text NOT NULL,
28
  `posted` varchar(20) NOT NULL,
29
  `red` int(1) NOT NULL,
30
  PRIMARY KEY (`id`)
31
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
32
33
-- --------------------------------------------------------
34
35
--
36
-- Table structure for table `clikes`
37
--
38
39
CREATE TABLE IF NOT EXISTS `clikes` (
40
  `uid` int(11) NOT NULL,
41
  `cid` int(11) NOT NULL,
42
  `liked` varchar(20) NOT NULL
43
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
44
45
-- --------------------------------------------------------
46
47
--
48
-- Table structure for table `cmt`
49
--
50
51-
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=52 ;
51+
52
  `id` int(11) NOT NULL AUTO_INCREMENT,
53
  `uid` int(11) NOT NULL,
54
  `pid` int(11) NOT NULL,
55
  `cmt` text NOT NULL,
56
  `posted` varchar(30) NOT NULL,
57
  `likes` int(11) NOT NULL,
58
  PRIMARY KEY (`id`),
59
  UNIQUE KEY `id` (`id`),
60
  UNIQUE KEY `posted` (`posted`),
61
  KEY `id_2` (`id`),
62
  KEY `uid` (`uid`),
63
  KEY `pid` (`pid`),
64
  KEY `posted_2` (`posted`),
65
  FULLTEXT KEY `cmt` (`cmt`),
66
  FULLTEXT KEY `posted_3` (`posted`)
67
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=56 ;
68
69
-- --------------------------------------------------------
70
71
--
72
-- Table structure for table `conn`
73
--
74
75
CREATE TABLE IF NOT EXISTS `conn` (
76
  `uid` int(11) NOT NULL,
77
  `fid` int(11) NOT NULL,
78
  `since` varchar(20) NOT NULL,
79
  PRIMARY KEY (`since`),
80
  UNIQUE KEY `since` (`since`),
81
  KEY `uid` (`uid`),
82
  KEY `fid` (`fid`),
83
  KEY `since_2` (`since`),
84
  FULLTEXT KEY `since_3` (`since`)
85
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
86
87
-- --------------------------------------------------------
88
89
--
90
-- Table structure for table `data`
91
--
92
93
CREATE TABLE IF NOT EXISTS `data` (
94
  `uid` int(11) NOT NULL,
95
  `name` varchar(100) NOT NULL,
96
  `txt` longtext NOT NULL,
97
  PRIMARY KEY (`uid`),
98
  UNIQUE KEY `uid` (`uid`),
99
  KEY `uid_2` (`uid`),
100
  KEY `name` (`name`),
101
  FULLTEXT KEY `name_2` (`name`),
102
  FULLTEXT KEY `txt` (`txt`)
103
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
104
105
-- --------------------------------------------------------
106
107
--
108
-- Table structure for table `likes`
109
--
110
111
CREATE TABLE IF NOT EXISTS `likes` (
112
  `uid` int(11) NOT NULL,
113
  `pid` int(11) NOT NULL,
114
  `liked` varchar(20) NOT NULL
115
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
116
117
-- --------------------------------------------------------
118
119
--
120
-- Table structure for table `oauth_session`
121
--
122
123
CREATE TABLE IF NOT EXISTS `oauth_session` (
124
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
125
  `session` char(32) NOT NULL DEFAULT '',
126
  `state` char(32) NOT NULL DEFAULT '',
127
  `access_token` mediumtext NOT NULL,
128
  `expiry` datetime DEFAULT NULL,
129
  `type` char(12) NOT NULL DEFAULT '',
130
  `server` char(12) NOT NULL DEFAULT '',
131
  `creation` datetime NOT NULL DEFAULT '2000-01-01 00:00:00',
132
  `access_token_secret` mediumtext NOT NULL,
133
  `authorized` char(1) DEFAULT NULL,
134
  `user` int(10) unsigned NOT NULL,
135
  `refresh_token` mediumtext NOT NULL,
136
  PRIMARY KEY (`id`),
137
  UNIQUE KEY `social_oauth_session_index` (`session`,`server`),
138
  UNIQUE KEY `id` (`id`),
139
  UNIQUE KEY `state` (`state`),
140
  UNIQUE KEY `type` (`type`),
141
  UNIQUE KEY `creation` (`creation`),
142
  UNIQUE KEY `user` (`user`),
143
  UNIQUE KEY `expiry` (`expiry`),
144
  UNIQUE KEY `authorized` (`authorized`),
145
  KEY `id_2` (`id`),
146
  KEY `session` (`session`),
147
  KEY `state_2` (`state`),
148
  KEY `expiry_2` (`expiry`),
149
  KEY `type_2` (`type`),
150
  KEY `server` (`server`),
151
  KEY `creation_2` (`creation`),
152
  KEY `authorized_2` (`authorized`),
153
  KEY `user_2` (`user`)
154
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
155
156
-- --------------------------------------------------------
157
158
--
159
-- Table structure for table `posts`
160
--
161
162
CREATE TABLE IF NOT EXISTS `posts` (
163
  `id` int(11) NOT NULL AUTO_INCREMENT,
164
  `uid` int(11) NOT NULL,
165
  `post` text NOT NULL,
166-
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=175 ;
166+
167
  `privacy` varchar(3) NOT NULL DEFAULT 'p',
168
  `likes` int(11) NOT NULL DEFAULT '0',
169
  `cmts` int(11) NOT NULL DEFAULT '0',
170
  PRIMARY KEY (`id`),
171
  UNIQUE KEY `id` (`id`),
172
  UNIQUE KEY `posted` (`posted`),
173
  KEY `id_2` (`id`),
174
  KEY `uid` (`uid`),
175
  KEY `posted_2` (`posted`),
176
  KEY `privacy` (`privacy`),
177
  KEY `likes` (`likes`),
178
  KEY `cmts` (`cmts`),
179
  FULLTEXT KEY `post` (`post`),
180
  FULLTEXT KEY `posted_3` (`posted`),
181
  FULLTEXT KEY `privacy_2` (`privacy`)
182
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=190 ;
183
184
-- --------------------------------------------------------
185
186
--
187
-- Table structure for table `trend`
188
--
189
190
CREATE TABLE IF NOT EXISTS `trend` (
191
  `title` varchar(50) NOT NULL,
192
  `hits` int(11) NOT NULL,
193
  PRIMARY KEY (`title`),
194
  UNIQUE KEY `title` (`title`),
195
  KEY `title_2` (`title`),
196
  KEY `hits` (`hits`),
197
  FULLTEXT KEY `title_3` (`title`)
198
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
199
200
-- --------------------------------------------------------
201
202
--
203
-- Table structure for table `users`
204
--
205
206
CREATE TABLE IF NOT EXISTS `users` (
207
  `id` int(11) NOT NULL AUTO_INCREMENT,
208
  `username` text NOT NULL,
209
  `password` text NOT NULL,
210
  `psalt` text NOT NULL,
211
  `name` varchar(100) NOT NULL,
212
  `udata` text NOT NULL,
213
  `seen` varchar(20) NOT NULL,
214
  UNIQUE KEY `id` (`id`),
215
  KEY `id_2` (`id`),
216
  FULLTEXT KEY `username` (`username`),
217
  FULLTEXT KEY `password` (`password`),
218
  FULLTEXT KEY `psalt` (`psalt`),
219
  FULLTEXT KEY `udata` (`udata`)
220
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
221
222
-- --------------------------------------------------------
223
224
--
225
-- Table structure for table `verify`
226
--
227
228
CREATE TABLE IF NOT EXISTS `verify` (
229
  `uid` int(11) NOT NULL,
230
  `code` varchar(35) NOT NULL,
231
  `posted` varchar(20) NOT NULL,
232
  PRIMARY KEY (`code`),
233
  UNIQUE KEY `code` (`code`),
234
  UNIQUE KEY `posted` (`posted`),
235
  KEY `uid` (`uid`),
236
  KEY `code_2` (`code`),
237
  KEY `posted_2` (`posted`),
238
  FULLTEXT KEY `code_3` (`code`),
239
  FULLTEXT KEY `posted_3` (`posted`)
240
) ENGINE=MyISAM DEFAULT CHARSET=latin1;