31 lines
671 B
JavaScript
31 lines
671 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,
|
|
},
|
|
localIP: {
|
|
type: String,
|
|
},
|
|
}, {
|
|
timestamps: true,
|
|
toJSON: { virtuals: true },
|
|
toObject: { virtuals: true },
|
|
});
|
|
const SessionServer = (0, mongoose_1.model)("Session_Server", sessionServerSchema);
|
|
exports.default = SessionServer;
|