Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Using SQL ORMs with Node.js Defining Models Exercise: Add a Person Model

karan Badhwar
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
karan Badhwar
Web Development Techdegree Graduate 18,135 Points

two tables people and person

If Sequelize Pluralize the name but it leaves with an extra table one with Person and other with People ? So which one is gonna be the main one and isn't that extra data?

And the People Table have everything on the Timestamp while on the Person table the timestamps are not there

1 Answer

Tyler McDonald
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Tyler McDonald
Full Stack JavaScript Techdegree Graduate 16,700 Points

There should not be two tables created in the SQL DB Browser. If there was, then there might be an option in your code causing that. The Person is the model within our code, which represents the People table in our actual SQL database. By default Sequelize pluralizes model names whenever it translates them into SQL tables. As mentioned in previous videos, this feature can be turned off via options.