"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "Floor", {
    enumerable: true,
    get: function() {
        return Floor;
    }
});
const _mongoose = require("mongoose");
const _FloorPrinter = require("./FloorPrinter");
const FloorSchema = new _mongoose.Schema({
    name: {
        type: String,
        required: true
    },
    floor: {
        type: Number,
        unique: true,
        min: [
            0,
            "Floors must be numbered from 0 and up"
        ],
        required: true
    },
    printers: [
        _FloorPrinter.PrinterInFloorSchema
    ]
});
const Floor = (0, _mongoose.model)("Floor", FloorSchema);

//# sourceMappingURL=Floor.js.map