vr-models 1.0.27 → 1.0.28

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.
@@ -13,6 +13,8 @@ export interface BanAttributes {
13
13
  revokedAt?: Date;
14
14
  revokedBy?: string;
15
15
  revocationReason?: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
16
18
  user: User;
17
19
  admin: User;
18
20
  revokingAdmin?: User;
@@ -36,6 +38,8 @@ export declare class Ban extends Model<InferAttributes<Ban>, InferCreationAttrib
36
38
  user: NonAttribute<User>;
37
39
  admin: NonAttribute<User>;
38
40
  revokingAdmin?: NonAttribute<User>;
41
+ readonly createdAt: CreationOptional<Date>;
42
+ readonly updatedAt: CreationOptional<Date>;
39
43
  static initialize(sequelize: any): void;
40
44
  static associate(models: Record<string, ModelStatic<Model>>): void;
41
45
  }
@@ -57,6 +57,14 @@ class Ban extends vr_migrations_1.Model {
57
57
  type: vr_migrations_1.DataTypes.TEXT,
58
58
  allowNull: true,
59
59
  },
60
+ createdAt: {
61
+ type: vr_migrations_1.DataTypes.DATE,
62
+ defaultValue: vr_migrations_1.DataTypes.NOW,
63
+ },
64
+ updatedAt: {
65
+ type: vr_migrations_1.DataTypes.DATE,
66
+ defaultValue: vr_migrations_1.DataTypes.NOW,
67
+ },
60
68
  }, {
61
69
  sequelize,
62
70
  modelName: "Ban",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-models",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Shared database models package for VR applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",