-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdb.sql
More file actions
executable file
·169 lines (157 loc) · 5.38 KB
/
Copy pathdb.sql
File metadata and controls
executable file
·169 lines (157 loc) · 5.38 KB
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
DROP TABLE IF EXISTS volunteer;
CREATE TABLE IF NOT EXISTS volunteer(
ID bigint(20) unsigned NOT NULL auto_increment,
volunteer_firstName varchar(90) NOT NULL,
volunteer_lastName varchar(60) NOT NULL,
volunteer_login varchar(90) NOT NULL,
volunteer_email varchar(150) NOT NULL,
volunteer_pass varchar(128) NOT NULL,
volunteer_phone varchar(16) NOT NULL,
volunteer_level varchar(20) NOT NULL,
volunteer_resetKey varchar(255) DEFAULT NULL,
volunteer_resetComplete varchar(3) DEFAULT 'No',
volunteer_session varchar(255) NOT NULL,
date_registered date NOT NULL,
time_registered time NOT NULL,
PRIMARY KEY(ID)
)Engine=MyISAM;
DROP TABLE IF EXISTS files;
CREATE TABLE IF NOT EXISTS files(
fileID smallint(5) unsigned NOT NULL auto_increment,
file_title varchar(120) NOT NULL,
file_name varchar(200) NOT NULL,
file_uploaded date NOT NULL,
file_hits int(3) NOT NULL,
file_slug varchar(255) NOT NULL,
PRIMARY KEY(fileID)
)Engine=MyISAM;
DROP TABLE IF EXISTS inbox;
CREATE TABLE IF NOT EXISTS `inbox` (
`ID` smallint(5) unsigned NOT NULL auto_increment,
`sender` varchar(90) NOT NULL,
`email` varchar(180) NOT NULL,
`phone` varchar(16) NOT NULL,
`messages` text NOT NULL,
`date_sent` date NOT NULL,
`time_sent` time NOT NULL,
PRIMARY KEY (`ID`)
)Engine=MyISAM;
DROP TABLE IF EXISTS posts;
CREATE TABLE IF NOT EXISTS `posts` (
`postID` bigint(20) unsigned NOT NULL auto_increment,
`post_image` varchar(512) default NULL,
`post_author` bigint(20) unsigned NOT NULL DEFAULT '0',
`date_created` date NOT NULL,
`date_modified` date DEFAULT NULL,
`post_title` varchar(255) NOT NULL,
`post_slug` varchar(255) NOT NULL,
`post_content` longtext NOT NULL,
`post_status` varchar(20) NOT NULL DEFAULT 'publish',
`post_type` varchar(120) NOT NULL DEFAULT 'blog',
`comment_status` varchar(20) NOT NULL DEFAULT 'open',
PRIMARY KEY (`postID`),
FULLTEXT KEY `post_title` (`post_title`),
FULLTEXT KEY `post_title_2` (`post_title`,`post_content`)
) Engine=InnoDB;
DROP TABLE IF EXISTS category;
CREATE TABLE IF NOT EXISTS `category` (
`categoryID` bigint(20) unsigned NOT NULL auto_increment,
`category_title` varchar(255) NOT NULL,
`category_slug` varchar(255) NOT NULL,
`status` enum('Y','N') NOT NULL DEFAULT 'Y',
PRIMARY KEY (`categoryID`)
) Engine=InnoDB;
DROP TABLE IF EXISTS post_category;
CREATE TABLE IF NOT EXISTS post_category(
post_categoryID int(11) unsigned NOT NULL auto_increment,
postID bigint(20) unsigned DEFAULT NULL,
categoryID bigint(20) unsigned DEFAULT NULL,
PRIMARY KEY(post_categoryID)
)Engine=InnoDB;
DROP TABLE IF EXISTS album;
CREATE TABLE IF NOT EXISTS album(
albumID int(11) unsigned NOT NULL auto_increment PRIMARY KEY,
album_title varchar(160) NOT NULL,
album_picture varchar(255) default NULL,
album_slug varchar(255) NOT NULL,
date_created date NOT NULL,
date_modified date DEFAULT NULL
)Engine=InnoDB;
DROP TABLE IF EXISTS photo;
CREATE TABLE IF NOT EXISTS photo(
photoID int(11) unsigned NOT NULL auto_increment,
album_id int(11) unsigned NOT NULL,
photo_title varchar(200) NOT NULL,
photo_slug varchar(255) NOT NULL,
photo_desc text default NULL,
photo_filename varchar(512) default NULL,
date_created date NOT NULL,
PRIMARY KEY(photoID)
)Engine=InnoDB;
DROP TABLE IF EXISTS event;
CREATE TABLE IF NOT EXISTS event(
event_id int(11) unsigned NOT NULL auto_increment,
sender_id bigint(20) unsigned NOT NULL,
event_image varchar(512) default NULL,
name varchar(200) NOT NULL,
slug varchar(255) NOT NULL,
description text NOT NULL,
location varchar(255) NOT NULL,
time_started varchar(50) NOT NULL,
time_ended varchar(50) DEFAULT NULL,
start_date date NOT NULL,
end_date date DEFAULT NULL,
date_created date NOT NULL,
date_modified date DEFAULT NULL,
time_created time NOT NULL,
time_modified time DEFAULT NULL,
PRIMARY KEY(event_id)
)Engine=InnoDB;
DROP TABLE IF EXISTS configuration;
CREATE TABLE IF NOT EXISTS configuration(
`config_id` smallint(5) unsigned NOT NULL auto_increment,
`site_name` varchar(150) NOT NULL,
`meta_description` varchar(255) NOT NULL,
`meta_keywords` varchar(255) NOT NULL,
`tagline` varchar(200) NOT NULL,
`address` text NOT NULL,
`email` varchar(150) NOT NULL,
`phone` varchar(20) NOT NULL,
`fax` varchar(20) DEFAULT NULL,
`instagram` varchar(100) DEFAULT NULL,
`twitter` varchar(100) DEFAULT NULL,
`facebook` varchar(120) DEFAULT NULL,
`logo` varchar(120) DEFAULT NULL,
PRIMARY KEY (`config_id`)
)Engine=MyISAM;
DROP TABLE IF EXISTS menu;
CREATE TABLE IF NOT EXISTS menu(
`ID` int(11) unsigned NOT NULL auto_increment,
`title` varchar(200) NOT NULL DEFAULT '',
`link` varchar(255) NOT NULL DEFAULT '',
`parent` int(11) unsigned NOT NULL DEFAULT '0',
`sort` int(11) unsigned NOT NULL DEFAULT '0',
`slug` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY(`ID`)
)Engine=InnoDB;
DROP TABLE IF EXISTS product_flavour;
CREATE TABLE IF NOT EXISTS product_flavour(
ID int(11) unsigned NOT NULL auto_increment,
title varchar(200) NOT NULL,
slug varchar(255) NOT NULL,
PRIMARY KEY(ID)
)Engine=MyISAM;
DROP TABLE IF EXISTS products;
CREATE TABLE IF NOT EXISTS products(
ID int(11) unsigned NOT NULL auto_increment,
product_name varchar(200) NOT NULL,
product_version varchar(40) NOT NULL,
product_flavour_id int(11) unsigned NOT NULL,
product_module varchar(255) NOT NULL,
product_slug varchar(512) NOT NULL,
product_description text NOT NULL,
product_link varchar(255) DEFAULT NULL,
product_image varchar(255) DEFAULT NULL,
date_published date NOT NULL,
PRIMARY KEY(ID)
)Engine=MyISAM;