Skip to content

Update database schema to use the userid field instead of username #176

@hadiahmed098

Description

@hadiahmed098

Using a username field as the foreign key to link the tables together is not good practice. It is better to use the unique increasing integer that already exists as the primary key in the Users table. This won't change anything for the end user, except we must evaluate the user endpoints to see if they should use the username or userid as the route parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code enhancementImprovements to the code without noticeably changing user experience

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions