"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EquipmentAnalysis = 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");
let EquipmentAnalysis = class EquipmentAnalysis {
};
exports.EquipmentAnalysis = EquipmentAnalysis;
tslib_1.__decorate([
    (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
    (0, type_graphql_1.Field)(type => type_graphql_1.ID),
    tslib_1.__metadata("design:type", String)
], EquipmentAnalysis.prototype, "id", void 0);
tslib_1.__decorate([
    (0, typeorm_1.Column)(),
    (0, type_graphql_1.Field)(),
    tslib_1.__metadata("design:type", String)
], EquipmentAnalysis.prototype, "type", void 0);
tslib_1.__decorate([
    (0, typeorm_1.Column)(),
    (0, type_graphql_1.Field)(),
    tslib_1.__metadata("design:type", String)
], EquipmentAnalysis.prototype, "name", void 0);
tslib_1.__decorate([
    (0, typeorm_1.Column)({ nullable: true }),
    (0, type_graphql_1.Field)({ nullable: true }),
    tslib_1.__metadata("design:type", String)
], EquipmentAnalysis.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)
], EquipmentAnalysis.prototype, "input", 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)
], EquipmentAnalysis.prototype, "output", void 0);
exports.EquipmentAnalysis = EquipmentAnalysis = tslib_1.__decorate([
    (0, typeorm_1.Entity)(),
    (0, typeorm_1.Index)('ix_equipment_analysis_0', (equipmentAnalysis) => [
        equipmentAnalysis.type,
        equipmentAnalysis.name,
        equipmentAnalysis.processId
    ], { unique: true }),
    (0, type_graphql_1.ObjectType)({ description: 'Entity for Design Equipment Analysis' })
], EquipmentAnalysis);
//# sourceMappingURL=equipment-analysis.js.map