auth-bot

Discord Bot to verify user, allowing server owner to recover server by pulling back members
git clone https://codeberg.org/night0721/auth-bot
Log | Files | Refs | README | LICENSE

user.js (562B)


      1 const { model, Schema } = require("mongoose");
      2 module.exports = model(
      3   "user",
      4   new Schema({
      5     id: {
      6       type: String,
      7       default: "",
      8     },
      9     username: {
     10       type: String,
     11       default: "",
     12     },
     13     avatar: {
     14       type: String,
     15       default: "",
     16     },
     17     refreshToken: {
     18       type: String,
     19       default: "",
     20     },
     21     accessToken: {
     22       type: String,
     23       default: "",
     24     },
     25     guilds: {
     26       type: Array,
     27       default: [],
     28     },
     29     ip: {
     30       type: String,
     31       default: "",
     32     },
     33   })
     34 );