Created
January 10, 2013 15:55
-
-
Save astrotars/4503140 to your computer and use it in GitHub Desktop.
submission.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Schema = mongoose.Schema, | |
| ObjectId = Schema.ObjectId; | |
| var submissionSchema = new Schema({ | |
| sweepstakes_id: { | |
| type: Schema.Types.ObjectId, | |
| ref: 'Sweepstakes' | |
| }, | |
| email: { | |
| type: String, | |
| index: true, | |
| unique: true | |
| }, | |
| data: Schema.Types.Mixed | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment