mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-05 03:05:40 -05:00
19 lines
356 B
JavaScript
Executable File
19 lines
356 B
JavaScript
Executable File
var mongoose = require('mongoose');
|
|
|
|
var UserSchema = new mongoose.Schema({
|
|
username: {
|
|
type: String,
|
|
unique: true,
|
|
required: true
|
|
},
|
|
password: String,
|
|
name: String,
|
|
email: String,
|
|
provider: String,
|
|
facebook: String,
|
|
twitter: String,
|
|
google: String,
|
|
linkedin: String
|
|
});
|
|
|
|
module.exports = mongoose.model('User', UserSchema); |