"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Analysis = void 0;
const tslib_1 = require("tslib");
const typeorm_1 = require("typeorm");
const type_graphql_1 = require("type-graphql");
const shell_1 = require("@things-factory/shell");
const process_1 = require("../process/process");
let Analysis = class Analysis {
};
tslib_1.__decorate([
    (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
    (0, type_graphql_1.Field)(type => type_graphql_1.ID),
    tslib_1.__metadata("design:type", String)
], Analysis.prototype, "id", void 0);
tslib_1.__decorate([
    (0, typeorm_1.ManyToOne)(type => process_1.Process, { onDelete: 'CASCADE' }),
    (0, type_graphql_1.Field)({ nullable: true }),
    tslib_1.__metadata("design:type", process_1.Process)
], Analysis.prototype, "process", void 0);
tslib_1.__decorate([
    (0, typeorm_1.RelationId)((analysis) => analysis.process),
    tslib_1.__metadata("design:type", String)
], Analysis.prototype, "processId", void 0);
tslib_1.__decorate([
    (0, typeorm_1.Column)('simple-json', { nullable: true }),
    (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
    tslib_1.__metadata("design:type", Object)
], Analysis.prototype, "model", void 0);
tslib_1.__decorate([
    (0, typeorm_1.Column)('simple-json', { nullable: true }),
    (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
    tslib_1.__metadata("design:type", Object)
], Analysis.prototype, "dag", void 0);
tslib_1.__decorate([
    (0, typeorm_1.Column)('simple-json', { nullable: true }),
    (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
    tslib_1.__metadata("design:type", Object)
], Analysis.prototype, "result", void 0);
Analysis = tslib_1.__decorate([
    (0, typeorm_1.Entity)(),
    (0, typeorm_1.Index)('ix_analysis_0', (analysis) => [analysis.process], { unique: true }),
    (0, type_graphql_1.ObjectType)({ description: 'Entity for Design Analysis' })
], Analysis);
exports.Analysis = Analysis;
//# sourceMappingURL=analysis.js.map