-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtwitvia.sql
74 lines (64 loc) · 2.09 KB
/
twitvia.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
/*
Navicat Premium Data Transfer
Source Server : misato
Source Server Type : MySQL
Source Server Version : 50521
Source Host : localhost
Source Database : twitvia
Target Server Type : MySQL
Target Server Version : 50521
File Encoding : utf-8
Date: 06/08/2012 09:31:12 AM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `aswers`
-- ----------------------------
DROP TABLE IF EXISTS `aswers`;
CREATE TABLE `aswers` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`questionID` int(10) unsigned DEFAULT NULL,
`value` longtext,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for `points`
-- ----------------------------
DROP TABLE IF EXISTS `points`;
CREATE TABLE `points` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`userID` int(10) unsigned DEFAULT NULL,
`value` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for `questions`
-- ----------------------------
DROP TABLE IF EXISTS `questions`;
CREATE TABLE `questions` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`question` longtext,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for `twittedQuestions`
-- ----------------------------
DROP TABLE IF EXISTS `twittedQuestions`;
CREATE TABLE `twittedQuestions` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`tweetID` longblob,
`questionID` int(10) unsigned DEFAULT NULL,
`answered` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Table structure for `users`
-- ----------------------------
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`twUser` text,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
SET FOREIGN_KEY_CHECKS = 1;