vr-models 1.0.29 → 1.0.30

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.
@@ -23,6 +23,8 @@ export interface UserAttributes {
23
23
  nationalId: string;
24
24
  isActive: boolean;
25
25
  forgotPassword: boolean;
26
+ verified: boolean;
27
+ verifiedAt: Date | null;
26
28
  otp: string | null;
27
29
  otpExpiresAt: Date | null;
28
30
  isDeactivated: boolean;
@@ -63,6 +65,8 @@ export declare class User extends Model<InferAttributes<User>, InferCreationAttr
63
65
  suspendedAt: CreationOptional<Date | null>;
64
66
  suspensionReason: CreationOptional<string | null>;
65
67
  forgotPassword: CreationOptional<boolean>;
68
+ verified: CreationOptional<boolean>;
69
+ verifiedAt: CreationOptional<Date | null>;
66
70
  otp: CreationOptional<string | null>;
67
71
  otpExpiresAt: CreationOptional<Date | null>;
68
72
  isDeactivated: CreationOptional<boolean>;
@@ -89,6 +89,15 @@ class User extends vr_migrations_1.Model {
89
89
  type: vr_migrations_1.DataTypes.BOOLEAN,
90
90
  defaultValue: false,
91
91
  },
92
+ verified: {
93
+ type: vr_migrations_1.DataTypes.BOOLEAN,
94
+ allowNull: false,
95
+ defaultValue: false,
96
+ },
97
+ verifiedAt: {
98
+ type: vr_migrations_1.DataTypes.DATE,
99
+ allowNull: true,
100
+ },
92
101
  otp: {
93
102
  type: vr_migrations_1.DataTypes.STRING(50),
94
103
  allowNull: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-models",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Shared database models package for VR applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",