Start work for proper database file storage

This commit is contained in:
2025-06-27 23:10:02 -07:00
parent c493513847
commit 8151567be2
4 changed files with 72 additions and 31 deletions
+7 -1
View File
@@ -23,13 +23,19 @@ CREATE TABLE IF NOT EXISTS `Product` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`Name` varchar(45) DEFAULT NULL,
`Description` text DEFAULT NULL,
`Images` longtext DEFAULT NULL,
`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,
PRIMARY KEY (`ImageID`,`ProductID`)
)
CREATE TABLE IF NOT EXISTS `Cart` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`AccountID` int(11) DEFAULT NULL,