diff --git a/server/src/models/Run.ts b/server/src/models/Run.ts index 05fc7f28..ac3b91b7 100644 --- a/server/src/models/Run.ts +++ b/server/src/models/Run.ts @@ -4,7 +4,7 @@ import Robot from './Robot'; interface RunAttributes { id: string; - recordingId: string; + robotId: string; status: string; name: string; startedAt: Date; @@ -20,7 +20,7 @@ interface RunCreationAttributes extends Optional { } class Run extends Model implements RunAttributes { public id!: string; - public recordingId!: string; + public robotId!: string; public status!: string; public name!: string; public startedAt!: Date; @@ -39,7 +39,7 @@ Run.init( defaultValue: DataTypes.UUIDV4, primaryKey: true, }, - recordingId: { + robotId: { type: DataTypes.UUID, allowNull: false, references: {