This repository has been archived by the owner on Sep 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatabase.sql
207 lines (186 loc) · 7.93 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
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
-- Adminer 4.6.3 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
SET NAMES utf8mb4;
DROP TABLE IF EXISTS `coachers`;
CREATE TABLE `coachers` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`company_name` varchar(255) NOT NULL,
`position` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`photo` varchar(255) NOT NULL,
`last_education` varchar(64) NOT NULL,
`experience` text NOT NULL,
`phone` varchar(32) NOT NULL,
`sector` varchar(255) NOT NULL,
`topic` text NOT NULL,
`status` enum('New Request','Follow Up','Confirmed','Canceled','Rejected') NOT NULL DEFAULT 'New Request',
`created_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `name` (`name`(191)),
KEY `company_name` (`company_name`(191)),
KEY `position` (`position`(191)),
KEY `email` (`email`(191)),
KEY `photo` (`photo`(191)),
KEY `latest_education` (`last_education`),
KEY `phone` (`phone`),
KEY `company_sector` (`sector`(191)),
KEY `topic` (`topic`(191)),
FULLTEXT KEY `experience` (`experience`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `faq`;
CREATE TABLE `faq` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`question` text NOT NULL,
`answer` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `faq` (`id`, `question`, `answer`) VALUES
(1, 'What is <b>SME Summit</b>?', 'SME Summit 2019 is a conference and mentoring panel session organized by PHP Indonesia which aims to help the technological transformation in non-tech companies, small and medium enterprises and traditional companies, shift the paradigm that IT division is only as a support division in the company into a profit-center division and helping to transform your stagnant companies into exponential growth companies.'),
(2, 'I am a question blablabla blablabla?', 'I am the answer <b>qweqweqwe</b>');
DROP TABLE IF EXISTS `participants`;
CREATE TABLE `participants` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`company_name` varchar(255) NOT NULL,
`company_sector` varchar(255) NOT NULL,
`position` varchar(255) NOT NULL,
`sector_to_be_coached` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`phone` varchar(255) NOT NULL,
`problem_desc` text NOT NULL,
`status` enum('New Request','Invoice Sent','Confirmed','Canceled','Rejected') DEFAULT 'New Request',
`voucher_code` varchar(20) DEFAULT NULL,
`payment_amount` decimal(15,2) DEFAULT '0.00',
`payment_instruction_email_sent` enum('0','1') NOT NULL DEFAULT '0',
`created_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `name` (`name`),
KEY `company_name` (`company_name`),
KEY `position` (`company_sector`),
KEY `company_sector` (`sector_to_be_coached`),
KEY `email` (`email`),
FULLTEXT KEY `problem_desc` (`problem_desc`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `payment_confirmation`;
CREATE TABLE `payment_confirmation` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`email_user_id` bigint(20) DEFAULT NULL,
`phone` varchar(255) NOT NULL,
`total_payment` varchar(255) NOT NULL,
`payment_type` enum('participant','sponsor','coacher') NOT NULL,
`date_transfer` varchar(64) NOT NULL,
`no_ref` varchar(255) NOT NULL,
`bank_name` varchar(64) NOT NULL,
`bank_username` varchar(64) NOT NULL,
`screenshot` text,
`notes` text,
`status` enum('pending','approved','rejected') DEFAULT 'pending',
`created_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `email_user_id` (`email_user_id`),
CONSTRAINT `payment_confirmation_ibfk_2` FOREIGN KEY (`email_user_id`) REFERENCES `participants` (`id`) ON DELETE SET NULL ON UPDATE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `price`;
CREATE TABLE `price` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`amount` double NOT NULL,
`description` varchar(255) NOT NULL,
`created_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `price` (`id`, `amount`, `description`, `created_at`) VALUES
(1, 500000, 'early_bird', '2019-02-13 11:28:53');
DROP TABLE IF EXISTS `speakers`;
CREATE TABLE `speakers` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`company_name` varchar(255) DEFAULT NULL,
`position` varchar(64) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`photo` varchar(255) DEFAULT NULL,
`last_education` varchar(64) DEFAULT NULL,
`experience` text,
`phone` varchar(32) DEFAULT NULL,
`sector` varchar(32) DEFAULT NULL,
`topic` text,
`fb_link` varchar(255) DEFAULT NULL,
`twitter_link` varchar(255) DEFAULT NULL,
`instagram_link` varchar(255) DEFAULT NULL,
`promoted` enum('0','1') NOT NULL DEFAULT '0',
`status` enum('New Request','Follow Up','Confirmed','Canceled','Rejected') DEFAULT 'New Request',
`created_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `name` (`name`),
KEY `company_name` (`company_name`),
KEY `position` (`position`),
KEY `email` (`email`),
KEY `photo` (`photo`),
KEY `last_education` (`last_education`),
KEY `company_sector` (`sector`),
KEY `phone` (`phone`),
FULLTEXT KEY `experience` (`experience`),
FULLTEXT KEY `topic` (`topic`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `sponsors`;
CREATE TABLE `sponsors` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`company_name` varchar(255) NOT NULL,
`company_sector` varchar(255) NOT NULL,
`email_pic` varchar(255) NOT NULL,
`company_logo` varchar(255) NOT NULL,
`phone` varchar(32) NOT NULL,
`sponsor_type` enum('platinum','gold','silver','media_partner') NOT NULL,
`status` enum('New Request','Invoice Sent','Confirmed','Canceled','Rejected') NOT NULL DEFAULT 'New Request',
`remarks` varchar(500) DEFAULT NULL,
`payment_amount` decimal(15,2) DEFAULT '0.00',
`payment_date` date DEFAULT NULL,
`payment_reference` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `company_name` (`company_name`(191)),
KEY `company_sector` (`company_sector`(191)),
KEY `email_pic` (`email_pic`(191)),
KEY `phone` (`phone`),
KEY `sponsor_type` (`sponsor_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DROP TABLE IF EXISTS `volunteers`;
CREATE TABLE `volunteers` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`phone` varchar(32) NOT NULL,
`why_you_apply_desc` text NOT NULL,
`created_at` datetime NOT NULL,
`city` varchar(255) DEFAULT NULL,
`status` enum('New Request','Follow Up','Confirmed','Canceled','Rejected') DEFAULT 'New Request',
`ig_link` varchar(255) DEFAULT NULL,
`fb_link` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `name` (`name`),
KEY `email` (`email`),
KEY `phone` (`phone`),
FULLTEXT KEY `why_you_apply_desc` (`why_you_apply_desc`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `vouchers`;
CREATE TABLE `vouchers` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(20) NOT NULL,
`discount_percent` decimal(5,2) NOT NULL DEFAULT '0.00',
`discount_amount` decimal(15,2) NOT NULL DEFAULT '0.00',
`partner_name` varchar(100) DEFAULT NULL,
`partner_email` varchar(100) DEFAULT NULL,
`referral_percent` decimal(5,2) NOT NULL DEFAULT '0.00',
`referral_amount` decimal(15,2) NOT NULL DEFAULT '0.00',
`redeem_limit` int(11) DEFAULT '1000',
`status` enum('Active','Redeemed','Inactive') DEFAULT 'Active',
`created_at` datetime DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Voucher Database';
INSERT INTO `vouchers` (`id`, `code`, `discount_percent`, `discount_amount`, `partner_name`, `partner_email`, `referral_percent`, `referral_amount`, `redeem_limit`, `status`, `created_at`, `updated_at`) VALUES
(1, 'PHPID20', 20.00, 0.00, '', '', 10.00, 0.00, 1000, 'Active', '2019-02-05 23:23:19', '2019-02-05 23:23:19');
-- 2019-02-13 06:14:19