DROP TABLE IF EXISTS `media_publications`;
CREATE TABLE `media_publications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`media_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`description` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY (`id`,`user_id`)
) ENGINE=INNODB;
Would it be pointless to have id
as a primary key here? Should I just have id + user_id
as the primary key considering I need it as a foreign key to another table?