This commit is contained in:
2024-05-27 17:22:09 +05:00
parent 5546ec6137
commit 3728d49ad9
14 changed files with 654 additions and 19 deletions
+27
View File
@@ -0,0 +1,27 @@
"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;