You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
srap/src/models/failure.js

20 lines
410 B
JavaScript

3 years ago
"use strict";
const { Model } = require("objection");
module.exports = function ({ db }) {
return class Failure extends Model {
3 years ago
static tableName = "srap_failures";
3 years ago
static get relationMappings() {
return {
taskResult: {
relation: Model.BelongsToOneRelation,
modelClass: db.TaskResult,
3 years ago
join: { from: "srap_failures.taskResultId", to: "srap_taskResults.id" }
3 years ago
}
};
};
}
};