nyx/models/econ.js

43 lines
988 B
JavaScript
Raw Normal View History

const mongoose = require("mongoose");
module.exports = mongoose.model(
2021-06-12 12:53:51 +02:00
"economy",
new mongoose.Schema({
2021-06-12 12:53:51 +02:00
User: {
type: String,
required: true,
},
CP: {
type: Number,
2021-07-13 05:17:39 +02:00
default: 0,
},
BJWins: {
type: Number,
default: 0,
},
SlotsWins: {
type: Number,
default: 0,
},
BetWins: {
type: Number,
default: 0,
2021-06-12 12:53:51 +02:00
},
Inventory: {
NA45: { type: Number, default: 0 },
Deagle: { type: Number, default: 0 },
MantaRay: { type: Number, default: 0 },
Alias: { type: Number, default: 0 },
Scylla: { type: Number, default: 0 },
UrbanTracker: { type: Number, default: 0 },
EpicXPCard: { type: Number, default: 0 },
},
Gun: {
Name: { type: String, default: "" },
Rank: { type: String, default: "Iron" },
Kills: { type: Number, default: 0 },
XP: { type: Number, default: 0 },
Level: { type: Number, default: 1 },
},
2021-06-12 12:53:51 +02:00
})
);