-
Notifications
You must be signed in to change notification settings - Fork 0
/
Televia.sql
217 lines (173 loc) · 7.13 KB
/
Televia.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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
-- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version 5.5.16
/*!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 televia
--
CREATE DATABASE IF NOT EXISTS televia;
USE televia;
--
-- Definition of table `sm_fa_conf`
--
DROP TABLE IF EXISTS `sm_fa_conf`;
CREATE TABLE `sm_fa_conf` (
`idOpt` int(10) unsigned NOT NULL AUTO_INCREMENT,
`api_key` text NOT NULL,
`api_secret` text NOT NULL,
`username` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
`idAccount` int(10) unsigned NOT NULL,
`username_company` varchar(45) NOT NULL,
PRIMARY KEY (`idOpt`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sm_fa_conf`
--
/*!40000 ALTER TABLE `sm_fa_conf` DISABLE KEYS */;
INSERT INTO `sm_fa_conf` (`idOpt`,`api_key`,`api_secret`,`username`,`password`,`idAccount`,`username_company`) VALUES
(1,'182035988617376','58098ca808958f31f1f62dfef9089e72','[email protected]','book2012$',1,'marreroclaudio');
/*!40000 ALTER TABLE `sm_fa_conf` ENABLE KEYS */;
--
-- Definition of table `sm_filtro`
--
DROP TABLE IF EXISTS `sm_filtro`;
CREATE TABLE `sm_filtro` (
`idFiltro` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(45) NOT NULL,
`words` text NOT NULL,
`isAutomatic` tinyint(3) unsigned NOT NULL,
`twMessage` text NOT NULL,
`faceMessage` text NOT NULL,
`status` tinyint(3) unsigned NOT NULL,
`idAccount` int(10) unsigned NOT NULL,
`showInHome` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`idFiltro`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sm_filtro`
--
/*!40000 ALTER TABLE `sm_filtro` DISABLE KEYS */;
INSERT INTO `sm_filtro` (`idFiltro`,`name`,`words`,`isAutomatic`,`twMessage`,`faceMessage`,`status`,`idAccount`,`showInHome`) VALUES
(2,'Autopistas','autopista',1,'Mensaje para twitter','Mensaje para facebook',1,1,1),
(3,'Muertes','Muertos',1,'Test','Test',1,1,1),
(4,'Tetas','martes%20de%20tetas',1,'asdf','asdf',1,1,1);
/*!40000 ALTER TABLE `sm_filtro` ENABLE KEYS */;
--
-- Definition of table `sm_sessions`
--
DROP TABLE IF EXISTS `sm_sessions`;
CREATE TABLE `sm_sessions` (
`session_id` varchar(40) NOT NULL DEFAULT '0',
`ip_address` varchar(45) NOT NULL DEFAULT '0',
`user_agent` varchar(120) NOT NULL,
`last_activity` int(10) unsigned NOT NULL DEFAULT '0',
`user_data` text NOT NULL,
PRIMARY KEY (`session_id`),
KEY `last_activity_idx` (`last_activity`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sm_sessions`
--
/*!40000 ALTER TABLE `sm_sessions` DISABLE KEYS */;
/*!40000 ALTER TABLE `sm_sessions` ENABLE KEYS */;
--
-- Definition of table `sm_tw_conf`
--
DROP TABLE IF EXISTS `sm_tw_conf`;
CREATE TABLE `sm_tw_conf` (
`idOpt` int(10) unsigned NOT NULL AUTO_INCREMENT,
`consumer_key` text NOT NULL,
`consumer_secret` text NOT NULL,
`access_token` text NOT NULL,
`access_token_secret` text NOT NULL,
`username` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
`idAccount` int(10) unsigned NOT NULL,
`username_company` varchar(45) NOT NULL,
PRIMARY KEY (`idOpt`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sm_tw_conf`
--
/*!40000 ALTER TABLE `sm_tw_conf` DISABLE KEYS */;
INSERT INTO `sm_tw_conf` (`idOpt`,`consumer_key`,`consumer_secret`,`access_token`,`access_token_secret`,`username`,`password`,`idAccount`,`username_company`) VALUES
(1,'RPwAUxWS99r8YBnIIGiKRg','SIvP2kxXSo5HuuveindgvoXafMRk9DjbqAusqbCCM','62429679-TPP9O6rDYasNd2kL349OjxxdgoprZG6KE2SX8rUXh','VKmfRiiK20QZ1GpjSLJaPY2Q2Fkjr7NE01SQHKYraw','cmarrero01','RPwAUxWS99r8YBnIIGiKRg',1,'cmarrero01');
/*!40000 ALTER TABLE `sm_tw_conf` ENABLE KEYS */;
--
-- Definition of table `sm_tw_fa_not`
--
DROP TABLE IF EXISTS `sm_tw_fa_not`;
CREATE TABLE `sm_tw_fa_not` (
`idPost` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lastIdTwPost` text NOT NULL,
`lastIdFaPost` text NOT NULL,
`countMessages` int(10) unsigned NOT NULL,
`flag` tinyint(3) unsigned NOT NULL,
`idFiltro` int(10) unsigned NOT NULL,
PRIMARY KEY (`idPost`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sm_tw_fa_not`
--
/*!40000 ALTER TABLE `sm_tw_fa_not` DISABLE KEYS */;
INSERT INTO `sm_tw_fa_not` (`idPost`,`lastIdTwPost`,`lastIdFaPost`,`countMessages`,`flag`,`idFiltro`) VALUES
(1,'326806601593925632','search?q=autopista&limit=10&type=post¢er=24.086589,-102.502441&distance=1796&until=1365944145',1125,1,2),
(4,'326806671471017984','search?q=Muertos&limit=10&type=post¢er=24.086589,-102.502441&distance=1796&until=1366732609',2416,1,3),
(5,'326766319003398144','',0,0,4);
/*!40000 ALTER TABLE `sm_tw_fa_not` ENABLE KEYS */;
--
-- Definition of table `sm_tw_fa_posts`
--
DROP TABLE IF EXISTS `sm_tw_fa_posts`;
CREATE TABLE `sm_tw_fa_posts` (
`idPost` int(10) unsigned NOT NULL AUTO_INCREMENT,
`lastIdTwPost` text NOT NULL,
`lastIdFaPost` text NOT NULL,
`idFiltro` int(10) unsigned NOT NULL,
`flag` tinyint(3) unsigned NOT NULL,
`countMessages` int(10) unsigned NOT NULL,
PRIMARY KEY (`idPost`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sm_tw_fa_posts`
--
/*!40000 ALTER TABLE `sm_tw_fa_posts` DISABLE KEYS */;
INSERT INTO `sm_tw_fa_posts` (`idPost`,`lastIdTwPost`,`lastIdFaPost`,`idFiltro`,`flag`,`countMessages`) VALUES
(1,'326806601593925632','search?q=autopista&limit=10&type=post¢er=24.086589,-102.502441&distance=1796&until=1365944145',2,1,1125),
(2,'326792708683333634','search?q=Muertos&limit=10&type=post¢er=24.086589,-102.502441&distance=1796&until=1366742259',3,0,0),
(3,'326766319003398144','',4,0,0);
/*!40000 ALTER TABLE `sm_tw_fa_posts` ENABLE KEYS */;
--
-- Definition of table `sm_user`
--
DROP TABLE IF EXISTS `sm_user`;
CREATE TABLE `sm_user` (
`idUser` int(10) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(45) NOT NULL,
`password` varchar(45) NOT NULL,
`full_name` varchar(45) NOT NULL,
`idAccount` int(10) unsigned NOT NULL,
PRIMARY KEY (`idUser`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sm_user`
--
/*!40000 ALTER TABLE `sm_user` DISABLE KEYS */;
INSERT INTO `sm_user` (`idUser`,`email`,`password`,`full_name`,`idAccount`) VALUES
(1,'[email protected]','c893bad68927b457dbed39460e6afd62','Claudio A. Marrero',1);
/*!40000 ALTER TABLE `sm_user` 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 */;