<commit_before>var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var mongoose = require('mongoose');

var VERSION = '0009';
var PORT = 3000;

mongoose.connect('mongodb://localhost/driftwoodrp-' + VERSION);

var Schema = mongoose.Schema;

var strokeSchema = new Schema({
  strokes: [{
    start: {x: Number, y: Number},
    end: {x: Number, y: Number},
    color: String,
    width: Number}],
  min: {x: Number, y: Number},
  max: {x: Number, y: Number},
  start: {x: Number, y: Number},
  room: String,
  strokeID: Number,<commit_msg>In Index.js, added schema/models for: + campaigns + meetings + people / users<commit_after>var express = require('express');
var app = express();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var mongoose = require('mongoose');

var VERSION = '0009';
var PORT = 3000;

mongoose.connect('mongodb://localhost/driftwoodrp-' + VERSION);

var Schema = mongoose.Schema;

var campaignSchema = new Schema(
{
  name: String, /* Nickname for campaign, eg. "Acquisitions, Inc." */
  gameType: String, /* Name of the game, eg. "Pathfinder" */
  members: [Object], /* all members, including GMs */ 
  gameMasters: [Object] /* could be more than one. */
});
var campaign = Mongoose.model('Campaign', campaignSchema); 

var meetingSchema = new Schema(
{
  day: String, /*for now, just string for weekly day of week*/
  startTime: Number, /* eg. 1630 = 4:30 PM */
  endTime: Number, 
  campaign: Schema.Types.ObjectId, /* mongoose ObjectId type, for easy referencing*/
});
var meeting = Mongoose.model('Meeting', meetingSchema); 

var personSchema = new Schema({
  nickname: String, /* eg. "John" */
  username: String,  /* eg. xX_noobpwner_Xx */
  campaigns: [ Schema.Types.ObjectId ], /* campaign ID */
  friends: [ Schema.Types.ObjectId ] /* person ID */
});
var person = Mongoose.model('Person', personSchema); 


var strokeSchema = new Schema({
  strokes: [{
    start: {x: Number, y: Number},
    end: {x: Number, y: Number},
    color: String,
    width: Number}],
  min: {x: Number, y: Number},
  max: {x: Number, y: Number},
  start: {x: Number, y: Number},
  room: String,
  strokeID: Number,
{'fraction_non_alphanumeric': 0.16524854455888938, 'fraction_numerical': 0.010300044782803403, 'mean_word_length': 3.9977628635346756, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6134444', 'n_tokens_mistral': 753, 'n_tokens_neox': 736, 'n_words': 231}