-
Notifications
You must be signed in to change notification settings - Fork 1
/
id20654951_semicolonix.sql
474 lines (414 loc) · 23 KB
/
id20654951_semicolonix.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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
-- phpMyAdmin SQL Dump
-- version 5.2.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 20, 2023 at 04:33 AM
-- Server version: 10.4.25-MariaDB
-- PHP Version: 8.1.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `id20654951_semicolonix`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`a_email` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`a_firstName` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`a_lastName` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`a_password` varchar(256) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`a_email`, `a_firstName`, `a_lastName`, `a_password`) VALUES
('[email protected]', 'John', 'Chin', '$2y$10$Bk5rhkKj.lG54Sp0wPmfieAb29wP4pLbRi7.hjlLkta431ngjjQX6');
-- --------------------------------------------------------
--
-- Table structure for table `plan`
--
DROP TABLE IF EXISTS `plan`;
CREATE TABLE `plan` (
`plan_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`prod_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`plan_name` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`plan_desc` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`plan_price` float(5,2) NOT NULL,
`plan_status` enum('ACTIVE','INACTIVE') COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `plan`
--
INSERT INTO `plan` (`plan_id`, `prod_id`, `plan_name`, `plan_desc`, `plan_price`, `plan_status`) VALUES
('P-0GM50921FC832453RMR2XKDY', 'PROD0002', 'Basic', 'Best for rookies ', 3.55, 'ACTIVE'),
('P-0T4500702B9280615MR2XMDQ', 'PROD0003', 'Basic', 'Best for rookies ', 9.55, 'ACTIVE'),
('P-11H60556R0411082MMR2L2FI', 'PROD0001', 'Premium', 'The pros', 3.55, 'ACTIVE'),
('P-5UL64606MW856531PMR2XMUA', 'PROD0003', 'Premium', 'The pros', 33.55, 'ACTIVE'),
('P-7HU86870CB6342615MR2LZNA', 'PROD0001', 'Popular', 'Intermediate user', 2.55, 'ACTIVE'),
('P-8BN527251F239152TMR2XMMA', 'PROD0003', 'Popular', 'Intermediate user', 15.55, 'ACTIVE'),
('P-8SM252323T120453TMR2K4SQ', 'PROD0001', 'Basic', 'Best for rookies', 1.55, 'ACTIVE'),
('P-9M811001A39121528MR2XKYA', 'PROD0002', 'Premium', 'The pros', 57.55, 'ACTIVE'),
('P-9PP23621SW0121423MR2XKPQ', 'PROD0002', 'Popular', 'Intermediate user', 10.55, 'ACTIVE');
-- --------------------------------------------------------
--
-- Table structure for table `plandetail`
--
DROP TABLE IF EXISTS `plandetail`;
CREATE TABLE `plandetail` (
`auto_num` int(11) NOT NULL,
`plan_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`feature` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`status` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `plandetail`
--
INSERT INTO `plandetail` (`auto_num`, `plan_id`, `feature`, `status`) VALUES
(1, 'P-8SM252323T120453TMR2K4SQ', '1 Website', 1),
(2, 'P-8SM252323T120453TMR2K4SQ', '2 Subdomains per account', 1),
(3, 'P-8SM252323T120453TMR2K4SQ', '100GB Bandwidth', 1),
(4, 'P-8SM252323T120453TMR2K4SQ', '5 MySQL Databases', 1),
(5, 'P-8SM252323T120453TMR2K4SQ', '1 CPU Core', 1),
(6, 'P-8SM252323T120453TMR2K4SQ', '512GB RAM', 1),
(7, 'P-8SM252323T120453TMR2K4SQ', '50GB SSD Storage', 1),
(8, 'P-8SM252323T120453TMR2K4SQ', 'Unlimited Free SSL Certificates', 1),
(9, 'P-8SM252323T120453TMR2K4SQ', 'Daily Backup', 0),
(10, 'P-8SM252323T120453TMR2K4SQ', '99.9% Uptime Guarantee', 1),
(11, 'P-8SM252323T120453TMR2K4SQ', '24/7 Support', 1),
(12, 'P-8SM252323T120453TMR2K4SQ', 'Powerful Control Panel (cPanel)', 1),
(13, 'P-8SM252323T120453TMR2K4SQ', 'DNS management', 1),
(14, 'P-8SM252323T120453TMR2K4SQ', '10 Entry Processes', 1),
(15, 'P-8SM252323T120453TMR2K4SQ', '20 Active Processes', 1),
(16, 'P-7HU86870CB6342615MR2LZNA', '100 Website', 1),
(17, 'P-7HU86870CB6342615MR2LZNA', '100 Subdomains per account', 1),
(18, 'P-7HU86870CB6342615MR2LZNA', 'Unlimited Bandwidth', 1),
(19, 'P-7HU86870CB6342615MR2LZNA', 'Unlimited MySQL Databases', 1),
(20, 'P-7HU86870CB6342615MR2LZNA', '1 CPU Core', 1),
(21, 'P-7HU86870CB6342615MR2LZNA', '1024GB RAM', 1),
(22, 'P-7HU86870CB6342615MR2LZNA', '100GB SSD Storage', 1),
(23, 'P-7HU86870CB6342615MR2LZNA', 'Unlimited Free SSL Certificates', 1),
(24, 'P-7HU86870CB6342615MR2LZNA', 'Daily Backup', 0),
(25, 'P-7HU86870CB6342615MR2LZNA', '99.9% Uptime Guarantee', 1),
(26, 'P-7HU86870CB6342615MR2LZNA', '24/7 Support', 1),
(27, 'P-7HU86870CB6342615MR2LZNA', 'Powerful Control Panel (cPanel)', 1),
(28, 'P-7HU86870CB6342615MR2LZNA', 'DNS management', 1),
(29, 'P-7HU86870CB6342615MR2LZNA', '20 Entry Processes', 1),
(30, 'P-7HU86870CB6342615MR2LZNA', '45 Active Processes', 1),
(31, 'P-11H60556R0411082MMR2L2FI', '150 Website', 1),
(32, 'P-11H60556R0411082MMR2L2FI', '100 Subdomains per account', 1),
(33, 'P-11H60556R0411082MMR2L2FI', 'Unlimited Bandwidth', 1),
(34, 'P-11H60556R0411082MMR2L2FI', 'Unlimited MySQL Databases', 1),
(35, 'P-11H60556R0411082MMR2L2FI', '2 CPU Core', 1),
(36, 'P-11H60556R0411082MMR2L2FI', '1536GB RAM', 1),
(37, 'P-11H60556R0411082MMR2L2FI', '300GB SSD Storage', 1),
(38, 'P-11H60556R0411082MMR2L2FI', 'Unlimited Free SSL Certificates', 1),
(39, 'P-11H60556R0411082MMR2L2FI', 'Daily Backup', 1),
(40, 'P-11H60556R0411082MMR2L2FI', '99.9% Uptime Guarantee', 1),
(41, 'P-11H60556R0411082MMR2L2FI', '24/7 Support', 1),
(42, 'P-11H60556R0411082MMR2L2FI', 'Powerful Control Panel (cPanel)', 1),
(43, 'P-11H60556R0411082MMR2L2FI', 'DNS management', 1),
(44, 'P-11H60556R0411082MMR2L2FI', '35 Entry Processes', 1),
(45, 'P-11H60556R0411082MMR2L2FI', '70 Active Processes', 1),
(46, 'P-0GM50921FC832453RMR2XKDY', '1 vCPU core', 1),
(47, 'P-0GM50921FC832453RMR2XKDY', '1GB RAM', 1),
(48, 'P-0GM50921FC832453RMR2XKDY', '25GB SSD Storage', 1),
(49, 'P-0GM50921FC832453RMR2XKDY', '1TB Bandwidth', 1),
(50, 'P-0GM50921FC832453RMR2XKDY', '100Mbps Network', 1),
(51, 'P-0GM50921FC832453RMR2XKDY', 'Weekly Backups', 1),
(52, 'P-0GM50921FC832453RMR2XKDY', 'Full Root Access', 1),
(53, 'P-0GM50921FC832453RMR2XKDY', 'Dedicated IP', 1),
(54, 'P-0GM50921FC832453RMR2XKDY', '24/7 Support', 1),
(55, 'P-9PP23621SW0121423MR2XKPQ', '4 vCPU core', 1),
(56, 'P-9PP23621SW0121423MR2XKPQ', '4GB RAM', 1),
(57, 'P-9PP23621SW0121423MR2XKPQ', '85GB SSD Storage', 1),
(58, 'P-9PP23621SW0121423MR2XKPQ', '3TB Bandwidth', 1),
(59, 'P-9PP23621SW0121423MR2XKPQ', '200Mbps Network', 1),
(60, 'P-9PP23621SW0121423MR2XKPQ', 'Weekly Backups', 1),
(61, 'P-9PP23621SW0121423MR2XKPQ', 'Full Root Access', 1),
(62, 'P-9PP23621SW0121423MR2XKPQ', 'Dedicated IP', 1),
(63, 'P-9PP23621SW0121423MR2XKPQ', '24/7 Support', 1),
(64, 'P-9M811001A39121528MR2XKYA', '8 vCPU core', 1),
(65, 'P-9M811001A39121528MR2XKYA', '12GB RAM', 1),
(66, 'P-9M811001A39121528MR2XKYA', '250GB SSD Storage', 1),
(67, 'P-9M811001A39121528MR2XKYA', '6TB Bandwidth', 1),
(68, 'P-9M811001A39121528MR2XKYA', '300Mbps Network', 1),
(69, 'P-9M811001A39121528MR2XKYA', 'Weekly Backups', 1),
(70, 'P-9M811001A39121528MR2XKYA', 'Full Root Access', 1),
(71, 'P-9M811001A39121528MR2XKYA', 'Dedicated IP', 1),
(72, 'P-9M811001A39121528MR2XKYA', '24/7 Support', 1),
(73, 'P-0T4500702B9280615MR2XMDQ', 'Friendly Website Builder', 1),
(74, 'P-0T4500702B9280615MR2XMDQ', '2 vCPU core', 1),
(75, 'P-0T4500702B9280615MR2XMDQ', '3GB RAM', 1),
(76, 'P-0T4500702B9280615MR2XMDQ', '200GB SSD Storage', 1),
(77, 'P-0T4500702B9280615MR2XMDQ', '8GB Database Size', 1),
(78, 'P-0T4500702B9280615MR2XMDQ', 'Unlimited Bandwidth', 1),
(79, 'P-0T4500702B9280615MR2XMDQ', 'Access Manager', 1),
(80, 'P-0T4500702B9280615MR2XMDQ', 'PHP Support', 1),
(81, 'P-0T4500702B9280615MR2XMDQ', 'Isolated Resources', 1),
(82, 'P-0T4500702B9280615MR2XMDQ', 'Free SSL Certificates', 1),
(83, 'P-0T4500702B9280615MR2XMDQ', '99.9% Uptime Guarantee', 1),
(84, 'P-0T4500702B9280615MR2XMDQ', '24/7 Support', 1),
(85, 'P-8BN527251F239152TMR2XMMA', 'Friendly Website Builder', 1),
(86, 'P-8BN527251F239152TMR2XMMA', '4 vCPU core', 1),
(87, 'P-8BN527251F239152TMR2XMMA', '6GB RAM', 1),
(88, 'P-8BN527251F239152TMR2XMMA', '250GB SSD Storage', 1),
(89, 'P-8BN527251F239152TMR2XMMA', '8GB Database Size', 1),
(90, 'P-8BN527251F239152TMR2XMMA', 'Unlimited Bandwidth', 1),
(91, 'P-8BN527251F239152TMR2XMMA', 'Access Manager', 1),
(92, 'P-8BN527251F239152TMR2XMMA', 'PHP Support', 1),
(93, 'P-8BN527251F239152TMR2XMMA', 'Isolated Resources', 1),
(94, 'P-8BN527251F239152TMR2XMMA', 'Free SSL Certificates', 1),
(95, 'P-8BN527251F239152TMR2XMMA', '99.9% Uptime Guarantee', 1),
(96, 'P-8BN527251F239152TMR2XMMA', '24/7 Support', 1),
(97, 'P-5UL64606MW856531PMR2XMUA', 'Friendly Website Builder', 1),
(98, 'P-5UL64606MW856531PMR2XMUA', '8 vCPU core', 1),
(99, 'P-5UL64606MW856531PMR2XMUA', '12GB RAM', 1),
(100, 'P-5UL64606MW856531PMR2XMUA', '300GB SSD Storage', 1),
(101, 'P-5UL64606MW856531PMR2XMUA', '8GB Database Size', 1),
(102, 'P-5UL64606MW856531PMR2XMUA', 'Unlimited Bandwidth', 1),
(103, 'P-5UL64606MW856531PMR2XMUA', 'Access Manager', 1),
(104, 'P-5UL64606MW856531PMR2XMUA', 'PHP Support', 1),
(105, 'P-5UL64606MW856531PMR2XMUA', 'Isolated Resources', 1),
(106, 'P-5UL64606MW856531PMR2XMUA', 'Free SSL Certificates', 1),
(107, 'P-5UL64606MW856531PMR2XMUA', '99.9% Uptime Guarantee', 1),
(108, 'P-5UL64606MW856531PMR2XMUA', '24/7 Support', 1);
-- --------------------------------------------------------
--
-- Table structure for table `product`
--
DROP TABLE IF EXISTS `product`;
CREATE TABLE `product` (
`prod_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`prod_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`prod_status` enum('ACTIVE','INACTIVE') COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `product`
--
INSERT INTO `product` (`prod_id`, `prod_name`, `prod_status`) VALUES
('PROD0001', 'Shared', 'ACTIVE'),
('PROD0002', 'VPS', 'ACTIVE'),
('PROD0003', 'Dedicated', 'ACTIVE');
-- --------------------------------------------------------
--
-- Table structure for table `productlog`
--
DROP TABLE IF EXISTS `productlog`;
CREATE TABLE `productlog` (
`id` int(10) NOT NULL,
`datetime` timestamp NOT NULL DEFAULT current_timestamp(),
`action` text NOT NULL,
`prod_id` int(10) NOT NULL,
`prod_title` varchar(255) NOT NULL,
`prod_subtitle` varchar(255) NOT NULL,
`prod_category` varchar(255) NOT NULL,
`prod_price` float(10,2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `subscription`
--
DROP TABLE IF EXISTS `subscription`;
CREATE TABLE `subscription` (
`sub_status` text COLLATE utf8_unicode_ci NOT NULL,
`sub_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`plan_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`u_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`paypal_email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`paypal_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`payer_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`amount` double(10,2) NOT NULL,
`currency_code` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`bill_date` datetime NOT NULL,
`next_bill_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `subscription`
--
INSERT INTO `subscription` (`sub_status`, `sub_id`, `plan_id`, `u_email`, `paypal_email`, `paypal_name`, `payer_id`, `amount`, `currency_code`, `bill_date`, `next_bill_date`) VALUES
('ACTIVE', 'I-162GFA7RB7E1', 'P-7HU86870CB6342615MR2LZNA', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 2.55, 'USD', '2023-06-18 15:09:08', '2023-07-18 10:00:00'),
('ACTIVE', 'I-1YJMH7J82111', 'P-11H60556R0411082MMR2L2FI', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 3.55, 'USD', '2023-06-18 14:18:56', '2023-07-18 10:00:00'),
('ACTIVE', 'I-2XUX7E0F0VVL', 'P-9M811001A39121528MR2XKYA', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 57.55, 'USD', '2023-06-11 02:56:24', '2023-07-10 10:00:00'),
('CANCELLED', 'I-4V9TL2ATMN06', 'P-8SM252323T120453TMR2K4SQ', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 1.55, 'USD', '2023-06-18 14:04:30', '2023-07-18 10:00:00'),
('CANCELLED', 'I-5GEMP6JEFCYA', 'P-7HU86870CB6342615MR2LZNA', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 2.55, 'USD', '2023-06-18 13:28:43', '2023-07-18 10:00:00'),
('ACTIVE', 'I-6M57K474PKPH', 'P-8SM252323T120453TMR2K4SQ', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 1.55, 'USD', '2023-06-18 15:08:05', '2023-07-18 10:00:00'),
('CANCELLED', 'I-7ASEP9890ULU', 'P-0T4500702B9280615MR2XMDQ', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 9.55, 'USD', '2023-06-18 14:23:14', '2023-07-18 10:00:00'),
('CANCELLED', 'I-7VVWUGVNBPC8', 'P-8SM252323T120453TMR2K4SQ', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 1.55, 'USD', '2023-06-18 11:20:18', '2023-07-18 10:00:00'),
('CANCELLED', 'I-82XAGC46MVVC', 'P-0T4500702B9280615MR2XMDQ', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 9.55, 'USD', '2023-06-18 14:00:04', '2023-07-18 10:00:00'),
('CANCELLED', 'I-8XRF9G498AW3', 'P-0GM50921FC832453RMR2XKDY', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 3.55, 'USD', '2023-06-18 14:51:53', '2023-07-18 10:00:00'),
('CANCELLED', 'I-BSC0VGAWB5WW', 'P-8BN527251F239152TMR2XMMA', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 15.55, 'USD', '2023-06-18 14:56:55', '2023-07-18 10:00:00'),
('CANCELLED', 'I-C82EBASK4PDW', 'P-7HU86870CB6342615MR2LZNA', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 2.55, 'USD', '2023-06-18 14:50:22', '2023-07-18 10:00:00'),
('CANCELLED', 'I-D3EACNBE3RKP', 'P-9PP23621SW0121423MR2XKPQ', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 10.55, 'USD', '2023-06-18 14:08:22', '2023-07-18 10:00:00'),
('ACTIVE', 'I-D3ETYG0AC8M9', 'P-8SM252323T120453TMR2K4SQ', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 1.55, 'USD', '2023-06-10 04:37:05', '2023-07-09 10:00:00'),
('CANCELLED', 'I-DECAR42XUUD2', 'P-0GM50921FC832453RMR2XKDY', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 3.55, 'USD', '2023-06-18 11:32:01', '2023-07-18 10:00:00'),
('CANCELLED', 'I-GCTHMG79R6HA', 'P-0GM50921FC832453RMR2XKDY', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 3.55, 'USD', '2023-06-18 14:15:20', '2023-07-18 10:00:00'),
('CANCELLED', 'I-H1JNJV618W7G', 'P-0T4500702B9280615MR2XMDQ', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 9.55, 'USD', '2023-06-18 15:02:07', '2023-07-18 10:00:00'),
('CANCELLED', 'I-K9TLD4PU91UY', 'P-7HU86870CB6342615MR2LZNA', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 2.55, 'USD', '2023-06-18 11:30:00', '2023-07-18 10:00:00'),
('CANCELLED', 'I-X0PJUYCCSC6P', 'P-11H60556R0411082MMR2L2FI', '[email protected]', '[email protected]', 'John Doe', '9LB2QJM6L9ZSU', 3.55, 'USD', '2023-06-18 14:13:42', '2023-07-18 10:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `transaction`
--
DROP TABLE IF EXISTS `transaction`;
CREATE TABLE `transaction` (
`trans_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`trans_sub_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`trans_status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`trans_currency_code` text COLLATE utf8_unicode_ci NOT NULL,
`trans_gross_amount` double(10,2) NOT NULL,
`trans_fee_amount` double(10,2) NOT NULL,
`trans_net_amount` double(10,2) NOT NULL,
`trans_datetime` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `transaction`
--
INSERT INTO `transaction` (`trans_id`, `trans_sub_id`, `trans_status`, `trans_currency_code`, `trans_gross_amount`, `trans_fee_amount`, `trans_net_amount`, `trans_datetime`) VALUES
('01441321P71239041', 'I-2XUX7E0F0VVL', 'COMPLETED', 'USD', 57.55, 2.50, 55.05, '2023-06-11 02:56:24'),
('0RS43217CK506170V', 'I-82XAGC46MVVC', 'COMPLETED', 'USD', 9.55, 0.82, 8.73, '2023-06-18 14:00:04'),
('1F461588NG645200K', 'I-BSC0VGAWB5WW', 'COMPLETED', 'USD', 15.55, 1.03, 14.52, '2023-06-18 14:56:55'),
('1U360631ED0593603', 'I-162GFA7RB7E1', 'COMPLETED', 'USD', 2.55, 0.58, 1.97, '2023-06-18 15:09:08'),
('2X375817G5972545M', 'I-7ASEP9890ULU', 'COMPLETED', 'USD', 9.55, 0.82, 8.73, '2023-06-18 14:23:14'),
('3E83404179373074G', 'I-K9TLD4PU91UY', 'COMPLETED', 'USD', 2.55, 0.58, 1.97, '2023-06-18 11:30:00'),
('3VW88234GS292042R', 'I-DECAR42XUUD2', 'COMPLETED', 'USD', 3.55, 0.61, 2.94, '2023-06-18 11:32:01'),
('45N28899E8393311N', 'I-C82EBASK4PDW', 'COMPLETED', 'USD', 2.55, 0.58, 1.97, '2023-06-18 14:50:22'),
('4VL92093DB740941E', 'I-1YJMH7J82111', 'COMPLETED', 'USD', 3.55, 0.61, 2.94, '2023-06-18 14:18:56'),
('4W702674GD4540624', 'I-7VVWUGVNBPC8', 'COMPLETED', 'USD', 1.55, 0.54, 1.01, '2023-06-18 11:20:18'),
('5A02058615551202F', 'I-4V9TL2ATMN06', 'COMPLETED', 'USD', 1.55, 0.54, 1.01, '2023-06-18 14:04:30'),
('6A410747M7915805S', 'I-H1JNJV618W7G', 'COMPLETED', 'USD', 9.55, 0.82, 8.73, '2023-06-18 15:02:07'),
('6KP76137EP235030C', 'I-6M57K474PKPH', 'COMPLETED', 'USD', 1.55, 0.54, 1.01, '2023-06-18 15:08:05'),
('71L13637TT2390441', 'I-D3ETYG0AC8M9', 'COMPLETED', 'USD', 1.55, 0.54, 1.01, '2023-06-10 04:37:05'),
('73381545NJ856435F', 'I-X0PJUYCCSC6P', 'COMPLETED', 'USD', 3.55, 0.61, 2.94, '2023-06-18 14:13:42'),
('76D95453PD2468643', 'I-D3EACNBE3RKP', 'COMPLETED', 'USD', 10.55, 0.86, 9.69, '2023-06-18 14:08:22'),
('77G374209F6374923', 'I-GCTHMG79R6HA', 'COMPLETED', 'USD', 3.55, 0.61, 2.94, '2023-06-18 14:15:20'),
('9G433175VM181014Y', 'I-5GEMP6JEFCYA', 'COMPLETED', 'USD', 2.55, 0.58, 1.97, '2023-06-18 13:28:43'),
('9RB32517LV393573V', 'I-8XRF9G498AW3', 'COMPLETED', 'USD', 3.55, 0.61, 2.94, '2023-06-18 14:51:53');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`u_email` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`u_firstName` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`u_lastName` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`u_password` varchar(256) COLLATE utf8_unicode_ci NOT NULL,
`signupDate` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`u_email`, `u_firstName`, `u_lastName`, `u_password`, `signupDate`) VALUES
('[email protected]', 'Alex', 'Anderson', '$2y$10$ngNaOIuWtZuOiQSGsuWTz.uQha2NON3dBR6TbXuZR7GzdtOsvX0AO', '2023-04-30 23:45:30'),
('[email protected]', 'Alice', 'Williams', '$2y$10$KHvOaXOpRxVIOoiT27uv8u2wDz2RajT.RfSsX6AMlAnAe/A/O1/l6', '2023-01-24 18:39:44'),
('[email protected]', 'Bob', 'Johnson', '$2y$10$nypN9i0pjX2vXVjRhUYjsO9q1Iete/xYKN6xDZ8P8zBYmA.iUBI1m', '2023-03-29 23:38:45'),
('[email protected]', 'Cynthia', 'Kim', '$2y$10$ac2hDcbtxiZ/Cus3eOBMmesFBvvWjXcDqXHI9fQ0.qG4/.36nuNve', '2023-05-01 08:06:54'),
('[email protected]', 'Emily', 'Wilson', '$2y$10$P6DMtHQchFdkQZMkI/FAhem5T6XpKqve7Nbn/uxvcpgJlAqo/wIlG', '2023-03-10 19:42:44'),
('[email protected]', 'James', 'Brown', '$2y$10$1Fvi5M4Kx44bjABj8zq6bOrEEhheFbe2uTv07vgA8fwpaaArvpRuK', '2023-01-19 21:40:43'),
('[email protected]', 'Jane', 'Smith', '$2y$10$VhkmYJyeU5JsmWcqD/Pxz.ky2e8dn3UWTBQ2ZvN4Si3QkzK7inPem', '2023-02-14 22:37:17'),
('[email protected]', 'John', 'Doe', '$2y$10$.qDSH0Kt5i6jmZgOziFJPe.c6qKyF4NCObigVyjZffEZ4ede.cckK', '2023-03-31 23:36:42'),
('[email protected]', 'Laura', 'Taylor', '$2y$10$2PnQULtHBaBmxR.FMTaCaerSmugPPaAqPXEuH9YScKyJK1TwakrhC', '2023-02-15 01:45:37'),
('[email protected]', 'Michael', 'Smith', '$2y$10$hgjOSuB3.AxjFsFSnS/Qzuudo5qvPGsHVmzrI8ywHPZwJb0uBVfhK', '2023-03-14 20:42:15'),
('[email protected]', 'Michelle', 'Chan', 'Michelle@12', '2023-05-02 00:06:54'),
('[email protected]', 'Name 1', 'Testing', '$2y$10$7gUExs92yWTFyWs5cyE1kuYI61bTOOE.vHY2Iq2sa9n2VcWnQaIGq', '2023-05-02 16:00:00'),
('[email protected]', 'Name 2', 'Testing', '$2y$10$L0h3sGaJwkXyyLjNjoSqiex.KiJqedwvp.uokO3jtGvmnQrHUMzcq', '2023-05-04 08:07:30'),
('[email protected]', 'Name 3', 'Testing', '$2y$10$jD326liszmITGRmtwQMjK.yTkrVGQe9zExgdoAHRLZwxUxSj6BI5C', '2023-05-02 08:09:00'),
('[email protected]', 'Sarah', 'Johnson', '$2y$10$GTBA0UJBW9rQgfBs4/.DUeq29MPMLztXBQ0cl0XqAmmI1MpPM9ydC', '2023-04-05 03:41:15');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`a_email`);
--
-- Indexes for table `plan`
--
ALTER TABLE `plan`
ADD PRIMARY KEY (`plan_id`),
ADD KEY `prod_id` (`prod_id`);
--
-- Indexes for table `plandetail`
--
ALTER TABLE `plandetail`
ADD PRIMARY KEY (`auto_num`),
ADD KEY `prod_id` (`plan_id`);
--
-- Indexes for table `product`
--
ALTER TABLE `product`
ADD PRIMARY KEY (`prod_id`);
--
-- Indexes for table `productlog`
--
ALTER TABLE `productlog`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `subscription`
--
ALTER TABLE `subscription`
ADD PRIMARY KEY (`sub_id`),
ADD KEY `plan_id` (`plan_id`),
ADD KEY `u_email` (`u_email`);
--
-- Indexes for table `transaction`
--
ALTER TABLE `transaction`
ADD PRIMARY KEY (`trans_id`),
ADD KEY `trans_sub_id` (`trans_sub_id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`u_email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `plandetail`
--
ALTER TABLE `plandetail`
MODIFY `auto_num` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=195;
--
-- AUTO_INCREMENT for table `productlog`
--
ALTER TABLE `productlog`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=173;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `plan`
--
ALTER TABLE `plan`
ADD CONSTRAINT `plan_ibfk_1` FOREIGN KEY (`prod_id`) REFERENCES `product` (`prod_id`);
--
-- Constraints for table `plandetail`
--
ALTER TABLE `plandetail`
ADD CONSTRAINT `plandetail_ibfk_1` FOREIGN KEY (`plan_id`) REFERENCES `plan` (`plan_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `subscription`
--
ALTER TABLE `subscription`
ADD CONSTRAINT `subscription_ibfk_1` FOREIGN KEY (`plan_id`) REFERENCES `plan` (`plan_id`),
ADD CONSTRAINT `subscription_ibfk_2` FOREIGN KEY (`u_email`) REFERENCES `user` (`u_email`);
--
-- Constraints for table `transaction`
--
ALTER TABLE `transaction`
ADD CONSTRAINT `transaction_ibfk_1` FOREIGN KEY (`trans_sub_id`) REFERENCES `subscription` (`sub_id`);
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 */;