Repository navigation
Expand file tree
/
Copy pathinstall.sql
More file actions
562 lines (513 loc) · 15.9 KB
/
Copy pathinstall.sql
File metadata and controls
562 lines (513 loc) · 15.9 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
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
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
CREATE DATABASE bosswebstore CHARACTER SET utf8;
use bosswebstore;
CREATE TABLE sitesettings (
sitename TEXT,
sitedesc TEXT,
sitecolor TEXT,
notification TEXT,
homeabout TEXT,
termsofservice TEXT,
privacypolicy TEXT,
cookiepolicy TEXT,
guildid TEXT,
themefile TEXT,
globalcustomer TEXT,
totalincome TEXT,
loggingchannelid TEXT,
supportlogschannelid TEXT,
firewallgg BOOLEAN,
maintenance BOOLEAN,
demotext TEXT,
tawkto TEXT,
email TEXT,
twitter TEXT,
discord TEXT,
youtube TEXT,
instagram TEXT,
facebook TEXT,
tiktok TEXT,
emailconfirmation BOOLEAN,
phonenumber TEXT,
linkedin TEXT
);
CREATE TABLE whycompanies (
uniqueid TEXT,
icon TEXT,
iconcolor TEXT,
title TEXT,
content TEXT
);
CREATE TABLE contactforms (
uniqueid TEXT,
name TEXT,
email TEXT,
datetime TEXT,
request TEXT
);
CREATE TABLE navbar (
name TEXT,
link TEXT,
pos INT,
parentid TEXT,
uniqueid TEXT
);
CREATE TABLE sitestyles (
navbarlogo INT,
statsproducts INT,
statsclients INT,
statspurchases INT,
statsusers INT,
statsreviews INT,
statspartners INT,
statsstaff INT,
currentprodsbtn INT,
visitstorebtn INT,
ourdiscordbtn INT,
recentpurchases INT,
shopsorting INT,
navbaralignment INT,
bgshoptoggle INT,
footnavigation INT,
footusefullinks INT,
footourpartners INT,
footlegal INT,
teampage INT,
partnerspage INT,
reviewspage INT,
productgallery INT,
productreviews INT,
productcredits INT,
giftcards INT,
clientcompaniesgreyscale INT,
homepagereviewsshowcase INT,
homepagefaqshowcase INT,
whycompanyenabled INT,
whycompanytitle TEXT,
whycompanysubtitle TEXT,
ourdiscordbtntext TEXT,
ourdiscordbtnlink TEXT
);
CREATE TABLE faq (
question TEXT,
answer TEXT,
uniqueid TEXT
);
CREATE TABLE blogs (
uniqueid TEXT,
title TEXT,
content TEXT,
views INT,
datetime TEXT,
link TEXT
);
CREATE TABLE changelogs (
uniqueid TEXT,
title TEXT,
vers TEXT,
content TEXT,
datetime TEXT,
productid TEXT
);
CREATE TABLE users (
id TEXT,
email TEXT,
password TEXT,
username TEXT,
latestip TEXT,
cart TEXT,
discount INT,
giftcard TEXT,
note TEXT,
client boolean,
mailinglist boolean,
mailendpoints TEXT,
temporary boolean
);
CREATE TABLE usingcompanies (
uniqueid TEXT,
name TEXT,
link TEXT
);
CREATE TABLE products (
uniqueid TEXT,
name TEXT,
link TEXT,
description TEXT,
credits TEXT,
price TEXT,
pricecrossout TEXT,
gallery TEXT,
pos INT,
zipfilename TEXT,
givenrole TEXT,
hidden BOOLEAN,
paused BOOLEAN,
overallprofit TEXT,
overallviews INT,
linkeditems TEXT,
featured BOOLEAN,
quantity INT,
prodtype INT, # was subscription boolean, now changed to prodtype 1-3 (1=Standard, 2=Subscription, 3=Manually Filled(clothes for example))
storetags TEXT,
demolink TEXT,
extension TEXT,
tebexpackageid TEXT
);
CREATE TABLE seoschema (
uniqueid TEXT,
link TEXT,
content TEXT
);
CREATE TABLE owneditems (
uniqueid TEXT,
productid TEXT,
userid TEXT,
productname TEXT,
datebought TEXT,
price TEXT,
receipt TEXT,
licensekey text,
authorizedip TEXT,
disabled boolean,
tebex boolean,
admindisabled boolean,
downloads INT,
prodtype INT,
status INT, # 1= recieved, 2=shipped, 3=delivered
trackinginfo TEXT,
address TEXT,
city TEXT,
state TEXT,
zipcode TEXT,
country TEXT,
firstlastname TEXT,
shippingemail TEXT
);
CREATE TABLE pendingpurchases (
uniqueid TEXT,
userid TEXT,
sessionid TEXT,
paymenttype TEXT,
leftover TEXT,
fivemusername TEXT,
address TEXT,
city TEXT,
state TEXT,
zipcode TEXT,
country TEXT,
firstlastname TEXT,
shippingemail TEXT
);
CREATE TABLE subscriptions (
uniqueid TEXT,
userid TEXT,
productid TEXT,
owneditemid TEXT,
invoiceid TEXT,
price TEXT,
nextduedate TEXT
);
CREATE TABLE quotes (
uniqueid TEXT,
userid TEXT,
name TEXT,
description TEXT,
datetime TEXT
);
CREATE TABLE quoteitems (
uniqueid TEXT,
quoteid TEXT,
name TEXT,
description TEXT,
price TEXT
);
CREATE TABLE owneduploads (
uniqueid TEXT,
userid TEXT,
name TEXT,
datetime TEXT,
price TEXT,
filename TEXT,
downloads INT
);
CREATE TABLE giftcards (
uniqueid TEXT,
name TEXT,
amount TEXT,
pos INT
);
CREATE TABLE categories (
id TEXT,
name TEXT
);
CREATE TABLE tickets (
id TEXT,
userid TEXT,
username TEXT,
category TEXT,
title TEXT,
content TEXT,
datecreated TEXT,
answerid TEXT
);
CREATE TABLE comments (
id TEXT,
ticketid TEXT,
userid TEXT,
username TEXT,
content TEXT,
datecreated TEXT
);
CREATE TABLE ownedgiftcards (
uniqueid TEXT,
giftcardid TEXT,
code TEXT,
amount TEXT,
purchaserid TEXT
);
CREATE TABLE storecategories (
uniqueid TEXT,
name TEXT,
link TEXT,
description TEXT,
pos INT,
hidden boolean,
items TEXT
);
CREATE TABLE storetags (
uniqueid TEXT,
name TEXT
);
CREATE TABLE licenselogs (
uniqueid TEXT,
owneditemuid TEXT,
ipaddress TEXT,
status TEXT,
datetime TEXT
);
CREATE TABLE team (
uniqueid TEXT,
name TEXT,
pos INT,
title TEXT,
content TEXT
);
CREATE TABLE partners (
uniqueid TEXT,
pos INT,
title TEXT,
content TEXT,
link TEXT
);
CREATE TABLE galleryimages (
uniqueid TEXT,
imagename TEXT
);
CREATE TABLE discounts (
code TEXT,
percent INT,
roleids TEXT,
expiration TEXT,
uniqueid TEXT
);
CREATE TABLE receipts (
uniqueid TEXT,
buyerid TEXT,
items TEXT,
payment TEXT,
datetime TEXT
);
CREATE TABLE reviews (
uniqueid TEXT,
userid TEXT,
username TEXT,
rating INT,
itemname TEXT,
itemuniqueid TEXT,
content TEXT
);
CREATE TABLE custompages (
uniqueid TEXT,
title TEXT,
link varchar(255),
content TEXT
);
CREATE TABLE advertisements (
uniqueid TEXT,
name TEXT,
link TEXT,
filetype TEXT
);
CREATE TABLE invoices (
uniqueid TEXT,
userid TEXT,
paid boolean,
title TEXT,
description TEXT,
datetime TEXT,
price TEXT
);
CREATE TABLE auditlogs (
datetime TEXT,
title TEXT,
description TEXT,
uniqueid TEXT
);
CREATE TABLE notifications (
uniqueid TEXT,
userid TEXT,
content TEXT,
datetime TEXT,
hasbeenread boolean
);
CREATE TABLE apikeys (
apikey TEXT,
limited boolean,
maxuses INT,
uses INT,
lastusedip TEXT,
lastuseddate TEXT,
userid TEXT,
permissions TEXT
);
CREATE TABLE bannedusers (
userid TEXT
);
CREATE TABLE staff (
userid TEXT,
altersitesettings BOOLEAN,
altersitestyling BOOLEAN,
createeditproducts BOOLEAN,
deleteproducts BOOLEAN,
managesubs BOOLEAN,
manageinvoices BOOLEAN,
managequotes BOOLEAN,
managestorecats BOOLEAN,
managestoretags BOOLEAN,
managegiftcards BOOLEAN,
manageorders BOOLEAN,
manageblogs BOOLEAN,
managecontactsubmissions BOOLEAN,
manageseo BOOLEAN,
managediscounts BOOLEAN,
managereviews BOOLEAN,
manageusers BOOLEAN,
manageowneditems BOOLEAN,
managebans BOOLEAN,
manageteam BOOLEAN,
managepartners BOOLEAN,
managedocs BOOLEAN,
managecustompages BOOLEAN,
manageclientcompanies BOOLEAN,
manageapikeys BOOLEAN,
manageads BOOLEAN,
viewstats BOOLEAN,
viewauditlogs BOOLEAN
);
CREATE TABLE applications (
id TEXT,
name TEXT,
closed BOOLEAN
);
CREATE TABLE appquestions (
id TEXT,
appid TEXT,
content TEXT,
type INT,
dropdownitems TEXT
);
CREATE TABLE appresponses (
id TEXT,
appid TEXT,
user TEXT,
responses TEXT,
status TEXT
);
CREATE TABLE IF NOT EXISTS docscategories (
uniqueid TEXT,
name TEXT,
link TEXT,
description TEXT,
pos INT
);
CREATE TABLE IF NOT EXISTS docsarticles (
uniqueid TEXT,
catid TEXT,
title TEXT,
link TEXT,
content TEXT,
discordroleid TEXT,
pos INT
);
CREATE TABLE statistics (
type TEXT,
jan INT,
feb INT,
mar INT,
apr INT,
may INT,
jun INT,
jul INT,
aug INT,
sep INT,
oct INT,
nov INT,
dece INT
);
INSERT INTO statistics (type, jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dece) VALUES ('customers', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO statistics (type, jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dece) VALUES ('autojoin', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO statistics (type, jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dece) VALUES ('homepagevisits', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO statistics (type, jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dece) VALUES ('newusers', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO statistics (type, jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dece) VALUES ('sales', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
INSERT INTO statistics (type, jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dece) VALUES ('income', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
ALTER DATABASE bosswebstore CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sitesettings CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE navbar CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE whycompanies CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE contactforms CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE blogs CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE seoschema CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE sitestyles CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE faq CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE users CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE products CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE owneditems CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE invoices CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE subscriptions CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE quotes CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE quoteitems CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE pendingpurchases CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE receipts CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE team CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE partners CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE galleryimages CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE discounts CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE categories CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE tickets CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE comments CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE reviews CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE custompages CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE auditlogs CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE notifications CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE apikeys CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE bannedusers CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE staff CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE docscategories CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE docsarticles CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE applications CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE appquestions CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE appresponses CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE usingcompanies CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
ALTER TABLE statistics CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
INSERT INTO sitesettings (linkedin, emailconfirmation, phonenumber, tawkto, themefile, sitename, sitedesc, sitecolor, notification, homeabout, termsofservice, privacypolicy, cookiepolicy, guildid, globalcustomer, totalincome, loggingchannelid, firewallgg, maintenance, demotext, email, twitter, discord, youtube, instagram, facebook, tiktok) VALUES ("none", false, "none", "none", "none.css", "My Webstore", "This is my new webstore!", "0390fc", "none", "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", "none", "none", "none", "none", "none", "0.00", "none", 1, 0, "Demo", "none", "none", "none", "none", "none", "none", "none");
INSERT INTO navbar (pos, parentid, name, link, uniqueid) VALUES (1, "none", "Home", "/", "gfdhwersdhjf");
INSERT INTO navbar (pos, parentid, name, link, uniqueid) VALUES (2, "none", "Shop", "/shop", "asdhfasd");
INSERT INTO navbar (pos, parentid, name, link, uniqueid) VALUES (3, "none", "Reviews", "/reviews", "touisdjbxc");
INSERT INTO navbar (pos, parentid, name, link, uniqueid) VALUES (4, "none", "Partners", "/partners", "gherqweiusdf");
INSERT INTO navbar (pos, parentid, name, link, uniqueid) VALUES (5, "none", "Support", "/support", "heqwrsuasufhasd");
INSERT INTO navbar (pos, parentid, name, link, uniqueid) VALUES (6, "none", "Gallery", "/gallery", "iudwshjvcjkhasdlk");
INSERT INTO navbar (pos, parentid, name, link, uniqueid) VALUES (7, "none", "Our Team", "/team", "iqwqyehgdsfhs");
INSERT INTO navbar (pos, parentid, name, link, uniqueid) VALUES (8, "none", "Discord", "/discord", "jklerthsdf");
INSERT INTO sitestyles (ourdiscordbtnlink, whycompanyenabled, whycompanytitle, whycompanysubtitle, ourdiscordbtntext, clientcompaniesgreyscale, homepagereviewsshowcase, homepagefaqshowcase, navbarlogo, currentprodsbtn, visitstorebtn, ourdiscordbtn, recentpurchases, shopsorting, navbaralignment, bgshoptoggle, footnavigation, footusefullinks, footourpartners, footlegal, statsproducts, statsclients, statspurchases, statsusers, statsreviews, statspartners, statsstaff, teampage, partnerspage, reviewspage, productgallery, productreviews, productcredits, giftcards) VALUES ('/discord', 0, "Built for small businesses", "Tools & resources for all businesses, from startups to legacy companies. We are here to help them all!", "Our Discord", 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
INSERT INTO auditlogs (uniqueid, title, datetime, description) VALUES ("firstauditlog", "Setup Complete", "~ ~ ~", "Boss Webstore by <a href='https://boss.software' target='_blank' style='color: rgb(0, 153, 255) !important;'>Boss Software Systems</a> has been setup successfully!");
INSERT INTO staff (userid, manageseo, manageorders, managecontactsubmissions, manageblogs, altersitesettings, altersitestyling, createeditproducts, deleteproducts, managesubs, manageinvoices, managequotes, managestorecats, managestoretags, managegiftcards, managediscounts, managereviews, manageusers, manageowneditems, managebans, manageteam, managepartners, managedocs, managecustompages, manageclientcompanies, manageapikeys, manageads, viewstats, viewauditlogs) VALUES ("704094587836301392", true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true);