From 7cce881653694ccc3e656689df0b0f52662a22ff Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 21 Oct 2024 20:39:42 +0530 Subject: [PATCH] feat: include userId --- server/src/models/Robot.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/src/models/Robot.ts b/server/src/models/Robot.ts index b419fe8f..2f4d1eec 100644 --- a/server/src/models/Robot.ts +++ b/server/src/models/Robot.ts @@ -19,6 +19,7 @@ interface RobotWorkflow { interface RobotAttributes { id: string; + userId: string; recording_meta: RobotMeta; recording: RobotWorkflow; google_sheet_email?: string | null; @@ -32,6 +33,7 @@ interface RobotCreationAttributes extends Optional { } class Robot extends Model implements RobotAttributes { public id!: string; + public userId!: string; public recording_meta!: RobotMeta; public recording!: RobotWorkflow; public google_sheet_email!: string | null; @@ -48,6 +50,10 @@ Robot.init( defaultValue: DataTypes.UUIDV4, primaryKey: true, }, + userId: { + type: DataTypes.UUID, + allowNull: false, + }, recording_meta: { type: DataTypes.JSONB, allowNull: false,