From 5491a2ac6083e89e3ea89eb38b0410da39d40fd8 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 21 Oct 2024 18:29:26 +0530 Subject: [PATCH] feat: run by user id, schedule id, api id --- server/src/models/Run.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/server/src/models/Run.ts b/server/src/models/Run.ts index 1c8e4dc6..e64cab19 100644 --- a/server/src/models/Run.ts +++ b/server/src/models/Run.ts @@ -20,6 +20,9 @@ interface RunAttributes { interpreterSettings: InterpreterSettings; log: string; runId: string; + runByUserId?: string; + runByScheduleId?: string; + runByAPI?: string; serializableOutput: Record; binaryOutput: Record; } @@ -38,6 +41,9 @@ class Run extends Model implements RunAttr public interpreterSettings!: InterpreterSettings; public log!: string; public runId!: string; + public runByUserId!: string; + public runByScheduleId!: string; + public runByAPI!: string; public serializableOutput!: Record; public binaryOutput!: Record; } @@ -93,6 +99,18 @@ Run.init( type: DataTypes.UUID, allowNull: false, }, + runByUserId: { + type: DataTypes.UUID, + allowNull: true, + }, + runByScheduleId: { + type: DataTypes.UUID, + allowNull: true, + }, + runByAPI: { + type: DataTypes.STRING(255), + allowNull: true, + }, serializableOutput: { type: DataTypes.JSONB, allowNull: true,