I am working on creation of a PostgreSQL Database.
I have 2 tables - Users and Projects
table
Usersconsist of: Id, Username, Password, and Project_ID (not sure if it's needed)- Primary key - Id
- Foreign Key - Project_id as ID in Projects Table
table
Project: Id, Name, Status, Deadline
How can I (if I can) implement a relation one-to-many in this case?
So if I make a JOIN query to show me User with certain ID and all his linked Projects?
Or It would be easier to create a User_ID foreign key in the Project table relating to Users table ID?