@giftwizard/db-models
Advanced tools
Comparing version 17.1.0 to 17.2.0
@@ -57,2 +57,4 @@ const { Sequelize, DataTypes } = require("sequelize"); | ||
// maxUses = rebalanceWindowSeconds (1800 seconds) * totalRequestsPerSecond (100) / numAppInstances (20) / poolSize (10) | ||
const sequelizeSettings = { | ||
@@ -68,4 +70,5 @@ host: env.MYSQL_HOST, | ||
max: parseInt(env.MYSQL_MAX_CONNECTION) || 10, | ||
min: parseInt(env.MYSQL_MIN_CONNECTION) || 0, | ||
min: parseInt(env.MYSQL_MIN_CONNECTION) || 5, | ||
acquire: env.MYSQL_MAX_ACQUIRE_TIME || 1000 * 60, | ||
maxUses: 1000, | ||
idle: 10000, | ||
@@ -72,0 +75,0 @@ }, |
@@ -41,3 +41,2 @@ const { v4: uuid } = require('uuid'); | ||
send_at: DataTypes.DATE, | ||
timezone: DataTypes.STRING, | ||
meta: DataTypes.JSON, | ||
@@ -44,0 +43,0 @@ }, |
{ | ||
"name": "@giftwizard/db-models", | ||
"version": "17.1.0", | ||
"version": "17.2.0", | ||
"description": "Rise.ai package for 'sequelize' models used by several projects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
91230
3431