Skip to content

Commit

Permalink
Create user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanJustiti authored Sep 17, 2024
1 parent 0839d04 commit f83bfaa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions models/user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const mongoose = require('mongoose');
const findOrCreate = require('mongoose-findorcreate');

const userSchema = new mongoose.Schema({
googleId: String
});

userSchema.plugin(findOrCreate);

module.exports = mongoose.model('User', userSchema);

0 comments on commit f83bfaa

Please sign in to comment.