vr-models 1.0.24 → 1.0.26

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.
@@ -19,11 +19,11 @@ export interface EventLogAttributes {
19
19
  export interface EventLogCreationAttributes extends Omit<EventLogAttributes, "id" | "createdAt" | "metadata" | "actorType"> {
20
20
  id?: string;
21
21
  metadata?: Record<string, any>;
22
- actorType?: UserRole;
22
+ actorType: UserRole;
23
23
  }
24
24
  export declare class EventLog extends Model<InferAttributes<EventLog>, InferCreationAttributes<EventLog>> implements EventLogAttributes {
25
25
  id: CreationOptional<string>;
26
- actorType: CreationOptional<UserRole>;
26
+ actorType: UserRole;
27
27
  actorId: CreationOptional<string | null>;
28
28
  action: EventAction;
29
29
  entity: string;
@@ -79,7 +79,7 @@ class EventLog extends vr_migrations_1.Model {
79
79
  actorType: {
80
80
  type: vr_migrations_1.DataTypes.ENUM("RIDER", "PASSENGER", "AGENT", "ADMIN", "SUPER_ADMIN"),
81
81
  allowNull: false,
82
- defaultValue: "SYSTEM",
82
+ defaultValue: "ADMIN",
83
83
  },
84
84
  actorId: {
85
85
  type: vr_migrations_1.DataTypes.UUID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vr-models",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Shared database models package for VR applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",