@itleanchatbot/shared-models-js-postgres 2.7.6 → 2.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itleanchatbot/shared-models-js-postgres",
3
- "version": "2.7.6",
3
+ "version": "2.7.7",
4
4
  "description": "Shared Models JS Postgres",
5
5
  "main": "index.js",
6
6
  "license": "ISC",
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ async up (queryInterface, Sequelize) {
5
+ await queryInterface.addColumn('Sessions', 'startedSessionAt', {
6
+ type: Sequelize.DATE,
7
+ allowNull: true
8
+ })
9
+ },
10
+
11
+ async down (queryInterface) {
12
+ await queryInterface.removeColumn('Sessions', 'startedSessionAt')
13
+ }
14
+ };
@@ -119,7 +119,7 @@ exports.model = (sequelize, DataType) => {
119
119
  brokerMessageId: {
120
120
  type: DataType.UUID,
121
121
  allowNull: true
122
- }
122
+ },
123
123
  })
124
124
 
125
125
  BotIterables.associate = (models) => {
@@ -51,6 +51,10 @@ exports.model = (sequelize, DataTypes) => {
51
51
  type: DataTypes.BOOLEAN,
52
52
  defaultValue: false,
53
53
  allowNull: true,
54
+ },
55
+ startedSessionAt: {
56
+ allowNull: true,
57
+ type: DataTypes.DATE
54
58
  }
55
59
  })
56
60