Skip to content

Commit

Permalink
Modified shortcuts DDL to allow same shortlinks for different users
Browse files Browse the repository at this point in the history
  • Loading branch information
ashrash committed Oct 15, 2022
1 parent 1cdac12 commit 83415a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DDL.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ CREATE TABLE `shortcuts`
`created_dttm` datetime NOT NULL ,
`updated_dttm` datetime NOT NULL ,

PRIMARY KEY (`short_link`),
PRIMARY KEY (`short_link`, `email_id`),
KEY `FK_2` (`email_id`),
CONSTRAINT `FK_1` FOREIGN KEY `FK_2` (`email_id`) REFERENCES `users` (`email`)
);
Expand Down

0 comments on commit 83415a0

Please sign in to comment.