first commit

This commit is contained in:
2024-03-05 19:20:15 +05:00
commit 9167785656
17 changed files with 2182 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import { model, Schema } from "mongoose";
const sessionServerSchema = new 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 = model("Session_Server", sessionServerSchema);
export default SessionServer;