const mongoose = require('mongoose'); const social = new mongoose.Schema({ username: { type: String, required: true }, friends: [{ username: String }], friend_requests: [{ username: String }] }); module.exports = Social = mongoose.model('social', social);