almost rebased

This commit is contained in:
2013-01-14 18:22:57 -05:00
parent f6d1b95d0b
commit 9c33416a92
626 changed files with 101228 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
var mongoose = require('mongoose');
// simple but incomplete email regexp:
var emailRegexp = /.+\@.+\..+/;
var UserSchema = new mongoose.Schema({
username: {type: String, unique: true},
name: String,
password: String,
email: {
type: String,
required: true,
match: emailRegexp
}
});
module.exports = UserSchema;