Account table in DB has to perisist right now

This commit is contained in:
2025-07-30 21:23:55 -07:00
parent d0a01c7d3f
commit f804b12506
2 changed files with 24 additions and 12 deletions
+4 -11
View File
@@ -10,13 +10,6 @@ Stripe_PublicKey=
Stripe_PublicKey= Stripe_PublicKey=
Stripe_Endpoint_Secret= Stripe_Endpoint_Secret=
####################
## Authentication ##
####################
# Random secret token for encrypting JWT contents
JWT_Secret=
############## ##############
## Database ## ## Database ##
############## ##############
@@ -28,7 +21,7 @@ MySQL_Pass=oasv34$8gpv023dd
## Email ## ## Email ##
############## ##############
Email_Server= # Hostname of email server Email_Server=
Email_Port= # SMTP port used Email_Port=
Email_Address= # Email Address to send from Email_Address=
Email_Password= # Password for the email address Email_Password=
+19
View File
@@ -1,6 +1,25 @@
CREATE DATABASE IF NOT EXISTS `boredcareers`; CREATE DATABASE IF NOT EXISTS `boredcareers`;
USE `boredcareers`; USE `boredcareers`;
-- Account Section
CREATE TABLE IF NOT EXISTS `Account` (
`ID` int NOT NULL AUTO_INCREMENT,
`UserName` varchar(60) NOT NULL,
`Email` varchar(255) NOT NULL,
`EmailVerified` boolean DEFAULT 0,
`PasswordHash` char(60) DEFAULT NULL,
`FailedPasswordLock` boolean DEFAULT 0,
`PasswordAttempts` int(11) DEFAULT NULL,
`CurrentPasswordAttempts` int(11) DEFAULT NULL,
`Role` varchar(45) DEFAULT NULL,
`EmailToken` varchar(45) DEFAULT NULL,
`DataServer` varchar(200) DEFAULT NULL,
UNIQUE(`Email`),
UNIQUE(`UserName`),
PRIMARY KEY (`ID`)
) AUTO_INCREMENT=1;
-- Resume Section -- Resume Section
CREATE TABLE IF NOT EXISTS `Resume` ( CREATE TABLE IF NOT EXISTS `Resume` (