This repository has been archived on 2026-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
Galaxy-Strike-Online/api/src/models/GameServer.js
2026-04-03 01:26:48 +03:00

17 lines
495 B
JavaScript

const mongoose = require("mongoose");
const gameServerSchema = new mongoose.Schema({
name: String,
url: String,
lastHeartbeat: { type: Date, default: Date.now },
status: { type: String, default: "online" },
description: { type: String, default: "Description..." },
isModded: { type: Boolean, default: false },
region: { type: String, default: "Null" },
playersOnline: {
type: Number,
default: 0,
},
});
module.exports = mongoose.model("GameServer", gameServerSchema);