Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There needs to be a primary key #6

Open
jewpaltz opened this issue Nov 6, 2020 · 0 comments
Open

There needs to be a primary key #6

jewpaltz opened this issue Nov 6, 2020 · 0 comments

Comments

@jewpaltz
Copy link

jewpaltz commented Nov 6, 2020

https://github.com/SoGucci/WebProgramming2020/blob/4cbf36ebf8cde0835740af28acf7d913f5136566/server/sql9374195-2.sql#L31

From years of experience I've learned that it is almost always best practice to have an autoincrementing number or some such field on every table to act as pk. Even tables that are just connection tables, or where a natural key already exists.

So same goes for followers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant