From 281b732c4868b0acd0fe4e86ffe647f024ce7e23 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Sat, 28 Jun 2025 10:32:45 -0700 Subject: [PATCH] Cleanup sql --- database/mistox.sql | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/database/mistox.sql b/database/mistox.sql index 9db91c7..4a9e4b4 100755 --- a/database/mistox.sql +++ b/database/mistox.sql @@ -22,17 +22,16 @@ CREATE TABLE IF NOT EXISTS `AccountInventory` ( CREATE TABLE IF NOT EXISTS `Product` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `Name` varchar(45) DEFAULT NULL, - `Description` text DEFAULT NULL, + `Description` text, `Cost` int(11) DEFAULT NULL, `URL` varchar(200) DEFAULT NULL, PRIMARY KEY (`ID`), - UNIQUE KEY `ID_UNIQUE` (`ID`) ) AUTO_INCREMENT=1; CREATE TABLE IF NOT EXISTS `ProductImage` ( `ImageID` int(11) NOT NULL AUTO_INCREMENT, `ProductID` int(11) NOT NULL, - 'Image' MEDIUMBLOB DEFAULT NULL, + `Image` MEDIUMBLOB, PRIMARY KEY (`ImageID`,`ProductID`) ) AUTO_INCREMENT=1; @@ -86,10 +85,10 @@ INSERT INTO Account ( EmailVerified, PasswordHash ) VALUES ( - '1', + 1, 'admin', 'admin@mistox.com', - '1', + 1, '' ); @@ -101,10 +100,10 @@ INSERT INTO WebsiteData ( Role, EmailToken ) VALUES ( - '1', - '1', - '5', - '0', + 1, + 1, + 5, + 0, 'Admin', '' ); \ No newline at end of file