Permalink
Browse files

Adding a Mongoose model for a tweet... not sure if we're going to use…

… this yet or not though
  • Loading branch information...
1 parent fe4d502 commit 5958bc21ae03cdbe2a9e94c3e8e93c697e011b3c @adamb0mb committed Apr 23, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 models/TweetModel.js
View
@@ -0,0 +1,17 @@
+var mongoose = require('mongoose');
+var Schema = mongoose.Schema;
+
+var TweetModel = new Schema({
+ user: { type: String },
+ text: { type: String },
+ tweetId: { type: Number, unique: true },
+ dateCreated: { type: Date, default: Date.now() },
+ tags: { hashtags: [String],
+ companies: [String],
+ primaryLanguage: { type: String},
+ sentiment: { type: String, enum: {"Positive","Negative","Neutral"}},
+ products: [String] },
+});
+
+mongoose.model('TweetModel',TweetModel);
+

0 comments on commit 5958bc2

Please sign in to comment.