sendou.ink/models/user.js
2019-12-12 14:00:17 +02:00

19 lines
494 B
JavaScript

const mongoose = require("mongoose")
const userSchema = new mongoose.Schema({
username: { type: String, required: true },
discriminator: { type: String, required: true },
discord_id: { type: String, required: true },
twitch_name: String,
twitter_name: String,
country: String,
sens: {
stick: { type: Number, min: -5, max: 5 },
motion: { type: Number, min: -5, max: 5 },
},
weapons: [String],
top500: Boolean,
})
module.exports = mongoose.model("User", userSchema)