UNPKG

alclient

Version:

A node client for interacting with Adventure Land - The Code MMORPG. This package extends the functionality of 'alclient' by managing a mongo database.

17 lines 501 B
import pkg from "mongoose"; const { Schema } = pkg; const RespawnSchema = new Schema({ __v: { select: false, type: Number, }, estimatedRespawn: Number, serverIdentifier: String, serverRegion: String, type: String, }); RespawnSchema.index({ type: 1 }); RespawnSchema.index({ serverIdentifier: 1, serverRegion: 1, type: 1 }, { unique: true }); RespawnSchema.index({ estimatedRespawn: 1 }); export default RespawnSchema; //# sourceMappingURL=respawns.schema.js.map