BoilerLiftUp / src / DB / Social.js
Social.js
Raw
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);