feat: run by user id, schedule id, api id
This commit is contained in:
@@ -20,6 +20,9 @@ interface RunAttributes {
|
||||
interpreterSettings: InterpreterSettings;
|
||||
log: string;
|
||||
runId: string;
|
||||
runByUserId?: string;
|
||||
runByScheduleId?: string;
|
||||
runByAPI?: string;
|
||||
serializableOutput: Record<string, any[]>;
|
||||
binaryOutput: Record<string, string>;
|
||||
}
|
||||
@@ -38,6 +41,9 @@ class Run extends Model<RunAttributes, RunCreationAttributes> implements RunAttr
|
||||
public interpreterSettings!: InterpreterSettings;
|
||||
public log!: string;
|
||||
public runId!: string;
|
||||
public runByUserId!: string;
|
||||
public runByScheduleId!: string;
|
||||
public runByAPI!: string;
|
||||
public serializableOutput!: Record<string, any[]>;
|
||||
public binaryOutput!: Record<string, any>;
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user