agrs-sequelize-sdk 1.0.36 → 1.0.37

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.
Files changed (2) hide show
  1. package/models/Users.js +3 -3
  2. package/package.json +1 -1
package/models/Users.js CHANGED
@@ -4,10 +4,10 @@ module.exports = (sequelize, DataTypes) => {
4
4
  "Users",
5
5
  {
6
6
  id: {
7
- type: DataTypes.INTEGER, // Use INTEGER for auto-incrementing ID
8
- autoIncrement: true, // Automatically increment the value
7
+ type: DataTypes.UUID, // Use UUID for the primary key
8
+ defaultValue: DataTypes.UUIDV4, // Automatically generate a UUID
9
9
  primaryKey: true, // Set as primary key
10
- },
10
+ },
11
11
  Username: {
12
12
  type: DataTypes.STRING,
13
13
  allowNull: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",