Skip to content

Commit

Permalink
Merge pull request #2 from shreyasSarve/shreyas
Browse files Browse the repository at this point in the history
server created
  • Loading branch information
aadarshkt authored May 7, 2022
2 parents cebb0e3 + 15556a9 commit 361e29a
Show file tree
Hide file tree
Showing 5 changed files with 1,813 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
/node_modules
17 changes: 17 additions & 0 deletions server/models/user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const mongoose = require("mongoose");
const Scheme = mongoose.Schema;

const userScheme = new Scheme({
token: {
type: String,
required: true,
},
username: {
type: String,
},
nfts: {
type: Array,
},
},{timestamps:true});
const User=mongoose.model('User',userScheme);
module.exports=User;
Loading

0 comments on commit 361e29a

Please sign in to comment.