From 4827a232abbb0d04cdc1e4f41bafc8af17461f96 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 9 Oct 2024 03:31:51 +0530 Subject: [PATCH] feat: robotId --- server/src/models/Run.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: {