var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var executions_exports = {};
__export(executions_exports, {
  default: () => executions_default
});
module.exports = __toCommonJS(executions_exports);
var executions_default = {
  dumpRules: {
    group: "log"
  },
  name: "executions",
  shared: true,
  fields: [
    {
      type: "belongsTo",
      name: "workflow"
    },
    {
      type: "string",
      name: "key"
    },
    {
      type: "hasMany",
      name: "jobs",
      onDelete: "CASCADE"
    },
    {
      type: "json",
      name: "context"
    },
    {
      type: "integer",
      name: "status"
    },
    {
      type: "bigInt",
      name: "parentNode"
    },
    {
      type: "bigInt",
      name: "executionCost"
    },
    {
      type: "belongsTo",
      name: "parent",
      foreignKey: "parentId",
      treeParent: true,
      target: "executions",
      sourceKey: "id"
    }
  ]
};
