Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const mongoose = require("mongoose");
- const userSchema = mongoose.Schema({
- userID: {
- type: String,
- required: true,
- unique: true,
- match: /^[0-9]{17,19}$/
- },
- tag: {
- type: String,
- required: true,
- match: /^(?!(everyone|here|discordtag|.*(`{1,3}).*\2))[^@#:]{2,32}#\d{4}$/
- },
- }, {collection: "Users"});
- module.exports = mongoose.model("users", userSchema);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement