"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ObjectSubType = void 0;
const tslib_1 = require("tslib");
const repository_1 = require("@loopback/repository");
const data_entity_model_1 = require("./data-entity.model");
const object_type_model_1 = require("./object-type.model");
let ObjectSubType = class ObjectSubType extends data_entity_model_1.DataEntity {
    constructor(data) {
        super(data);
    }
};
tslib_1.__decorate([
    repository_1.property({
        type: 'string',
    }),
    tslib_1.__metadata("design:type", String)
], ObjectSubType.prototype, "name", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'string',
    }),
    tslib_1.__metadata("design:type", String)
], ObjectSubType.prototype, "title", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'number',
        default: 10,
    }),
    tslib_1.__metadata("design:type", Number)
], ObjectSubType.prototype, "index", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'number',
        default: 0,
    }),
    tslib_1.__metadata("design:type", Number)
], ObjectSubType.prototype, "min", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'number',
        default: Number.MAX_SAFE_INTEGER,
    }),
    tslib_1.__metadata("design:type", Number)
], ObjectSubType.prototype, "max", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'boolean',
        default: false,
    }),
    tslib_1.__metadata("design:type", Boolean)
], ObjectSubType.prototype, "owner", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'boolean',
        default: false,
    }),
    tslib_1.__metadata("design:type", Boolean)
], ObjectSubType.prototype, "acl", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'boolean',
        default: false,
    }),
    tslib_1.__metadata("design:type", Boolean)
], ObjectSubType.prototype, "tree", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'boolean',
        default: false,
    }),
    tslib_1.__metadata("design:type", Boolean)
], ObjectSubType.prototype, "namespace", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'array',
        itemType: 'string',
        default: [],
    }),
    tslib_1.__metadata("design:type", Array)
], ObjectSubType.prototype, "exclusions", void 0);
tslib_1.__decorate([
    repository_1.property({
        type: 'array',
        itemType: 'string',
        default: [],
    }),
    tslib_1.__metadata("design:type", Array)
], ObjectSubType.prototype, "mandatories", void 0);
tslib_1.__decorate([
    repository_1.belongsTo(() => object_type_model_1.ObjectType),
    tslib_1.__metadata("design:type", String)
], ObjectSubType.prototype, "objectTypeId", void 0);
tslib_1.__decorate([
    repository_1.belongsTo(() => object_type_model_1.ObjectType),
    tslib_1.__metadata("design:type", String)
], ObjectSubType.prototype, "subObjectTypeId", void 0);
ObjectSubType = tslib_1.__decorate([
    repository_1.model({ settings: { strict: false } }),
    tslib_1.__metadata("design:paramtypes", [Object])
], ObjectSubType);
exports.ObjectSubType = ObjectSubType;
//# sourceMappingURL=object-sub-type.model.js.map