forked from DaWe35/Facebook-event-crawler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.sql
69 lines (57 loc) · 1.72 KB
/
database.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
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!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 utf8mb4 */;
--
-- Database: `event_crawler`
--
-- --------------------------------------------------------
--
-- Table `events`
--
DROP TABLE IF EXISTS `events`;
CREATE TABLE IF NOT EXISTS `events` (
`id` bigint(20) NOT NULL,
`page` varchar(63) NOT NULL,
`title` varchar(255) NOT NULL,
`description` text NOT NULL,
`date` varchar(127) NOT NULL,
`datefrom` datetime DEFAULT NULL,
`dateto` datetime DEFAULT NULL,
`place` varchar(127) DEFAULT NULL,
`ago` varchar(63) DEFAULT NULL,
`location` varchar(127) DEFAULT NULL,
`going` mediumint(9) DEFAULT NULL,
`intrested` mediumint(9) DEFAULT NULL,
`photo` varchar(511) DEFAULT NULL,
`lat` float(10,6) DEFAULT NULL,
`lon` float(10,6) DEFAULT NULL,
`lastupdate` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Table `pages`
--
DROP TABLE IF EXISTS `pages`;
CREATE TABLE IF NOT EXISTS `pages` (
`page` varchar(63) NOT NULL,
`lastindex` datetime DEFAULT NULL,
PRIMARY KEY (`page`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Data for `pages`
--
INSERT INTO `pages` (`page`, `lastindex`) VALUES
('tomorrowland', NULL),
('Ultra', NULL),
('djhardwell', NULL),
('timmytrumpet', NULL),
('Willcoxofficial', NULL);
COMMIT;
/*!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 */;