How does sequelize.sync() work, specifically the force option?

sequelize.js

Solution

(More or less) formal docs and API reference can be found at https://sequelize.org/docs/v6/core-concepts/model-basics/#model-synchronization

To your question: `force: true` adds a `DROP TABLE IF EXISTS` before trying to create the table - if you force, existing tables will be overwritten.

Problem

What does the force option on sequelize.sync() do? ``` sequelize.sync({ force: true }); ``` Specifically, I am interested in knowing what force: false does? Will it not sync the schema with the database? Are there any formal docs for sequelize? I could only find examples inside the docs.

Original source

Related problems