"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EvaluationStatus = 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 EvaluationStatus = class EvaluationStatus {
};
exports.EvaluationStatus = EvaluationStatus;
tslib_1.__decorate([
    (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
    (0, type_graphql_1.Field)(type => type_graphql_1.ID),
    tslib_1.__metadata("design:type", String)
], EvaluationStatus.prototype, "id", void 0);
tslib_1.__decorate([
    (0, typeorm_1.Column)(),
    (0, type_graphql_1.Field)(),
    tslib_1.__metadata("design:type", String)
], EvaluationStatus.prototype, "type", void 0);
tslib_1.__decorate([
    (0, typeorm_1.Column)({ type: 'boolean', default: false }),
    (0, type_graphql_1.Field)(type => Boolean),
    tslib_1.__metadata("design:type", Boolean)
], EvaluationStatus.prototype, "done", 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)
], EvaluationStatus.prototype, "result", void 0);
exports.EvaluationStatus = EvaluationStatus = tslib_1.__decorate([
    (0, typeorm_1.Entity)(),
    (0, type_graphql_1.ObjectType)({ description: 'Entity for EvaluationStatus' }),
    (0, typeorm_1.Index)('ix_evaluation_status_0', (evaluationStatus) => [evaluationStatus.type, evaluationStatus.done])
], EvaluationStatus);
//# sourceMappingURL=evaluation-status.js.map