first commit
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user