Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ilyaskarim/d13a11e973e7b42fcd9b26367891a096 to your computer and use it in GitHub Desktop.
Save ilyaskarim/d13a11e973e7b42fcd9b26367891a096 to your computer and use it in GitHub Desktop.
Wertik Custom Modules - Database options
let configuration = {
modules: [
{
useDatabase: true, // Set false if you are not storing data for this module.
database: {
sql: {
tableName: "YOUR_TABLE_NAME",
tableOptions: {
// Use Sequelize table options here, Please see https://sequelize.org/v5/manual/models-definition.html
// See section: Apart from datatypes, there are plenty of options that you can set on each column.
},
fields: {
// Use Sequelize table fields here, Please see https://sequelize.org/v5/manual/models-definition.html
},
},
},
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment