4IRL / urls4irl

Sharing URL's with friends.
3 stars 0 forks source link

UrlID to UtubUrlID #203

Closed GPropersi closed 1 month ago

GPropersi commented 1 month ago

Changes table name from UrlTags to UtubUrlTags

Introduces an id field as primary key for UtubUrls, and removes previous composite primary key that consisted of utubID, urlID, and userID.

Enforces the usage of the UtubUrls.id field as the foreign key for URL reference in the UtubUrlTags table. Replaced the urlID foreign key that points to an entry in the Urls table, with a utubUrlID field that points towards the primary key of UtubUrls field.

Updates all JSON responses to use utubUrlID instead of urlID in responses where the urlID was provided.