UNPKG

@fdm-monster/server

Version:

FDM Monster is a bulk OctoPrint manager to set up, configure and monitor 3D printers. Our aim is to provide extremely optimized websocket performance and reliability.

33 lines (32 loc) 735 B
"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