BoilerLiftUp / src / DB / Community.js
Community.js
Raw
const mongoose = require('mongoose');

const community = new mongoose.Schema({
    ComName: {
		type: String,
		required: true,
		unique: true
	},
	owner: {
		type: String,
		required: true
	},
	admins: [{
		type: String
	}],
	members: [{
		type: String
	}],
	description: {
		type: String
	}

});

module.exports = Community = mongoose.model('community', community);