diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index e3a5cae4..d2dbca67 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -19,7 +19,7 @@ interface RobotWorkflow { interface RobotAttributes { id: string; - userId?: string; + userId?: number; recording_meta: RobotMeta; recording: RobotWorkflow; google_sheet_email?: string | null; @@ -33,7 +33,7 @@ interface RobotCreationAttributes extends Optional { } class Robot extends Model implements RobotAttributes { public id!: string; - public userId!: string; + public userId!: number; public recording_meta!: RobotMeta; public recording!: RobotWorkflow; public google_sheet_email!: string | null; @@ -51,7 +51,7 @@ Robot.init( primaryKey: true, }, userId: { - type: DataTypes.UUID, + type: DataTypes.INTEGER, allowNull: false, }, recording_meta: {