-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscheme.sql
194 lines (118 loc) · 4.76 KB
/
scheme.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
185
186
187
188
189
190
191
192
193
194
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*Table structure for table `default_ps_activity` */
DROP TABLE IF EXISTS `default_ps_activity`;
CREATE TABLE `default_ps_activity` (
`activity_id` int(32) NOT NULL AUTO_INCREMENT,
`site_id` int(6) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`verb` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`module` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`type` varchar(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`content_id` int(11) DEFAULT NULL,
`data` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`status` char(1) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
PRIMARY KEY (`activity_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Table structure for table `default_ps_friends` */
DROP TABLE IF EXISTS `default_ps_friends`;
CREATE TABLE `default_ps_friends` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) NOT NULL,
`friend_id` bigint(20) NOT NULL,
`is_confirmed` tinyint(1) DEFAULT '0',
`is_limited` tinyint(1) DEFAULT '0',
`date_created` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `friend_id` (`friend_id`)
) ENGINE=MyISAM;
/*Table structure for table `default_ps_friends_meta` */
DROP TABLE IF EXISTS `default_ps_friends_meta`;
CREATE TABLE `default_ps_friends_meta` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`meta_key` varchar(55) DEFAULT NULL,
`meta_value` text,
PRIMARY KEY (`id`),
KEY `user_id` (`user_id`),
KEY `meta_key` (`meta_key`)
) ENGINE=MyISAM;
/*Table structure for table `default_ps_likes` */
DROP TABLE IF EXISTS `default_ps_likes`;
CREATE TABLE `default_ps_likes` (
`id` bigint(22) NOT NULL AUTO_INCREMENT,
`author_id` int(11) DEFAULT NULL,
`stream_id` int(11) DEFAULT NULL,
`comment_id` int(11) DEFAULT '0',
`like_type` char(1) DEFAULT '1',
`liked` int(6) DEFAULT '0',
`disliked` int(6) DEFAULT '0',
`is_stats` char(1) DEFAULT '0',
`like_date` int(11) DEFAULT NULL,
`ip_address` varchar(15) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `streamid` (`stream_id`),
KEY `is_stats` (`is_stats`),
KEY `comment_id` (`comment_id`),
KEY `authorid` (`author_id`)
) ENGINE=MyISAM;
/*Table structure for table `default_ps_media_oembed` */
DROP TABLE IF EXISTS `default_ps_media_oembed`;
CREATE TABLE `default_ps_media_oembed` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`stream_id` int(22) DEFAULT NULL,
`oe_type` varchar(25) DEFAULT NULL,
`provider_name` varchar(150) DEFAULT NULL,
`provider_url` varchar(255) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`author_name` varchar(150) DEFAULT NULL,
`author_url` varchar(255) DEFAULT NULL,
`media_main` text,
`media_thumb` text,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
/*Table structure for table `default_ps_wall` */
DROP TABLE IF EXISTS `default_ps_wall`;
CREATE TABLE `default_ps_wall` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(6) NOT NULL DEFAULT '0',
`stream_type` varchar(55) COLLATE utf8_unicode_ci DEFAULT 'custom',
`object_type` varchar(55) COLLATE utf8_unicode_ci DEFAULT NULL,
`object_id` int(11) DEFAULT NULL,
`body` text COLLATE utf8_unicode_ci,
`created_on` varchar(16) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
`ip_address` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`is_active` tinyint(1) DEFAULT NULL,
`likes` int(6) DEFAULT NULL,
`recent_comments` text COLLATE utf8_unicode_ci,
`num_comments` int(3) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
/*Table structure for table `default_ps_wall_images` */
DROP TABLE IF EXISTS `default_ps_wall_images`;
CREATE TABLE `default_ps_wall_images` (
`id` bigint(22) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`stream_id` int(11) DEFAULT NULL,
`added_on` varchar(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
/*Table structure for table `default_ps_comments` */
DROP TABLE IF EXISTS `default_ps_comments`;
CREATE TABLE `default_ps_comments` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`stream_id` int(11) NOT NULL DEFAULT '0',
`user_id` int(11) NOT NULL DEFAULT '0',
`stream_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT 'update',
`body` text COLLATE utf8_unicode_ci NOT NULL,
`created_on` varchar(11) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0',
`ip_address` varchar(15) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`likes` int(7) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;