sequelize-mock-v5 1.3.5 → 1.3.6

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": "sequelize-mock-v5",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "A simple mock interface specifically for testing code relying on Sequelize models",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
Binary file
Binary file
package/src/model.js CHANGED
@@ -69,6 +69,14 @@ function fakeModel(name, defaults, opts) {
69
69
  **/
70
70
  this.name = name;
71
71
  this._defaults = defaults || {};
72
+ this.primaryKeys = {
73
+ id: {
74
+ type: 'INTEGER',
75
+ allowNull: false,
76
+ autoIncrement: true,
77
+ primaryKey: true
78
+ }
79
+ }
72
80
 
73
81
  /**
74
82
  * Model definition containing the attributes/fields defined for this model