Files
node-session-server/dist/models/SessionServer.js
T
2024-03-05 19:20:15 +05:00

28 lines
627 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const mongoose_1 = require("mongoose");
const sessionServerSchema = new mongoose_1.Schema({
location: {
type: String,
},
name: {
type: String,
},
type: {
type: String,
},
hostname: {
type: String,
unique: true,
},
gpuMemoryFree: {
type: Number,
},
}, {
timestamps: true,
toJSON: { virtuals: true },
toObject: { virtuals: true },
});
const SessionServer = (0, mongoose_1.model)("Session_Server", sessionServerSchema);
exports.default = SessionServer;