mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-11 05:05:07 -05:00
18 lines
476 B
JavaScript
18 lines
476 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: {
|
|
sticks: { type: Number, min: -5, max: 5 },
|
|
motion: { type: Number, min: -5, max: 5 },
|
|
},
|
|
weapons: [String],
|
|
})
|
|
|
|
module.exports = mongoose.model("User", userSchema)
|