Skip to content

Database Structure

Noah Rijkaard edited this page Aug 20, 2024 · 3 revisions
  • Structuring the URL Shortener Model:
    • The database structure was designed to keep things simple yet functional. The URL shortener model was configured to generate shortened codes dynamically. I wanted to allow each original URL to have multiple shortened versions, enabling flexibility in tracking and managing different campaigns or uses.
    • The model also keeps track of the original URL and its title, which is useful for reference purposes, especially when redirecting users.
  • Tracking User Data:
    • To enhance the functionality, I added a feature to track user interactions with the shortened URLs. This involved creating a user_data model that logs when and where a user clicks on a link. Although this data is currently accessible through a Rails admin dashboard, it lays the groundwork for future enhancements, such as detailed analytics and user engagement statistics.

Clone this wiki locally