-
Notifications
You must be signed in to change notification settings - Fork 3
/
database_1.sql
151 lines (115 loc) · 3.82 KB
/
database_1.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
-- phpMyAdmin SQL Dump
-- version 4.0.10.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jul 28, 2015 at 08:33 PM
-- Server version: 5.5.41-cll-lve
-- PHP Version: 5.4.23
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 utf8 */;
--
-- Database: `fiji`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE IF NOT EXISTS `admin` (
`username` char(16) NOT NULL,
`password` char(40) NOT NULL,
PRIMARY KEY (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `articles`
--
CREATE TABLE IF NOT EXISTS `articles` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`publicationDate` date NOT NULL,
`title` varchar(255) NOT NULL,
`summary` text NOT NULL,
`content` mediumtext NOT NULL,
`imageExtension` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
-- --------------------------------------------------------
--
-- Table structure for table `comments`
--
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(40) NOT NULL,
`comments` text NOT NULL,
`date_publish` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ;
-- --------------------------------------------------------
--
-- Table structure for table `do_things`
--
CREATE TABLE IF NOT EXISTS `do_things` (
`id` int(13) NOT NULL AUTO_INCREMENT,
`publicationDate` date NOT NULL,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
`imageExtension` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
-- --------------------------------------------------------
--
-- Table structure for table `login`
--
CREATE TABLE IF NOT EXISTS `login` (
`email` varchar(100) NOT NULL,
`name` varchar(255) NOT NULL,
`username` varchar(16) NOT NULL,
`passwd` char(40) NOT NULL,
PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `upcoming_events`
--
CREATE TABLE IF NOT EXISTS `upcoming_events` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`publicationDate` date NOT NULL,
`title` varchar(255) NOT NULL,
`summary` varchar(230) NOT NULL,
`content` mediumtext NOT NULL,
`imageExtension` varchar(255) NOT NULL,
`date` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ;
-- --------------------------------------------------------
--
-- Table structure for table `_banned`
--
CREATE TABLE IF NOT EXISTS `_banned` (
`ip` varchar(255) NOT NULL,
UNIQUE KEY `ip` (`ip`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `_comments`
--
CREATE TABLE IF NOT EXISTS `_comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`message` text NOT NULL,
`time` int(11) NOT NULL,
`ip` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`browser` varchar(255) NOT NULL,
`pageid` int(11) NOT NULL,
`parent` int(11) NOT NULL,
`isadmin` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
/*!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 */;