 	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)
 );
 

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

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