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,