"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "Floor", {
    enumerable: true,
    get: function() {
        return Floor;
    }
});
const _typeorm = require("typeorm");
const _floorpositionentity = require("./floor-position.entity");
const _baseentity = require("./base.entity");
function _ts_decorate(decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function _ts_metadata(k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
}
class Floor extends _baseentity.BaseEntity {
    id;
    name;
    floor;
    printers;
}
_ts_decorate([
    (0, _typeorm.PrimaryGeneratedColumn)(),
    _ts_metadata("design:type", Number)
], Floor.prototype, "id", void 0);
_ts_decorate([
    (0, _typeorm.Column)(),
    _ts_metadata("design:type", String)
], Floor.prototype, "name", void 0);
_ts_decorate([
    (0, _typeorm.Column)({
        unique: true
    }),
    _ts_metadata("design:type", Number)
], Floor.prototype, "floor", void 0);
_ts_decorate([
    (0, _typeorm.OneToMany)(()=>_floorpositionentity.FloorPosition, (gp)=>gp.floor, {
        eager: true
    }),
    _ts_metadata("design:type", Array)
], Floor.prototype, "printers", void 0);
Floor = _ts_decorate([
    (0, _typeorm.Entity)()
], Floor);

//# sourceMappingURL=floor.entity.js.map