vr-models 1.0.22 → 1.0.24

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,7 +13,8 @@ export interface BanAttributes {
13
13
  revokedAt?: Date;
14
14
  revokedBy?: string;
15
15
  revocationReason?: string;
16
- user?: User;
16
+ user: User;
17
+ admin: User;
17
18
  }
18
19
  export interface BanCreationAttributes extends Omit<BanAttributes, "id" | "createdAt" | "updatedAt"> {
19
20
  id?: string;
@@ -32,6 +33,7 @@ export declare class Ban extends Model<InferAttributes<Ban>, InferCreationAttrib
32
33
  revokedBy: CreationOptional<string | undefined>;
33
34
  revocationReason: CreationOptional<string | undefined>;
34
35
  user: NonAttribute<User>;
36
+ admin: NonAttribute<User>;
35
37
  static initialize(sequelize: any): void;
36
38
  static associate(models: Record<string, ModelStatic<Model>>): void;
37
39
  }
@@ -16,7 +16,7 @@ export interface DevicePaymentPlanAttributes {
16
16
  createdAt: Date;
17
17
  updatedAt: Date;
18
18
  devices?: Device[];
19
- user?: User;
19
+ user: User;
20
20
  installments?: Installment[];
21
21
  }
22
22
  export interface DevicePaymentPlanCreationAttributes extends Omit<DevicePaymentPlanAttributes, "id" | "createdAt" | "updatedAt" | "paidAmount" | "outstandingAmount" | "lastPaymentAt" | "nextInstallmentDueAt" | "status" | "completedAt" | "devices" | "installments"> {
@@ -38,7 +38,7 @@ export declare class DevicePaymentPlan extends Model<InferAttributes<DevicePayme
38
38
  readonly createdAt: CreationOptional<Date>;
39
39
  readonly updatedAt: CreationOptional<Date>;
40
40
  devices?: NonAttribute<Device[]>;
41
- user?: NonAttribute<User>;
41
+ user: NonAttribute<User>;
42
42
  installments?: NonAttribute<Installment[]>;
43
43
  static initialize(sequelize: any): void;
44
44
  static associate(models: Record<string, ModelStatic<Model>>): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-models",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "Shared database models package for VR applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",