 	voteValue BIT NOT NULL,
 -- 	INDEX(voteProfileId),
 -- 	INDEX(voteImageId),
-	FOREIGN KEY(profileId) REFERENCES profile(profileId),
-	FOREIGN KEY(imageId) REFERENCES image(imageId),
+	FOREIGN KEY(voteProfileId) REFERENCES profile(profileId),
+	FOREIGN KEY(voteImageId) REFERENCES image(imageId),
 	PRIMARY KEY(voteProfileId, voteImageId)
 );
 

	commentProfileId INT UNSIGNED NOT NULL,
	commentDate DATETIME NOT NULL,
	commentText VARCHAR(1023) NOT NULL,
	INDEX(profileId),
	INDEX(imageId),
	FOREIGN KEY(profileId) REFERENCES profile(profileId),
	FOREIGN KEY(imageId) REFERENCES image(imageId),
	PRIMARY KEY(commentId)

	imageFileName VARCHAR(128) NOT NULL UNIQUE,
	imageText VARCHAR(500),
	imageType VARCHAR(128) NOT NULL,
	INDEX(imageProfileId),
	FOREIGN KEY(imageProfileId) REFERENCES profile(profileId),
	PRIMARY KEY(imageId)
);
