I am mostly a front end guy that is messing around with SQL, and I am having trouble determining whether the diagram I am making is a "Many to One" relationship, or a "One to One" relationship.
Table comments {
id integer [pk]
user_id integer
text text
post_url varchar
}
Table users {
id integer [pk]
user_name varchar
email varchar
password varchar
}
My current thought is that the comments table is a "Many To One" relationship with the user table. For example, many comments can belong to one user. Is this correct? Or is it a "One to One", seeing as one comment can only have on user.
A little confused with this stuff, so any input would be appreciated. Thank you.