Skip to content

Commit

Permalink
Create User.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DomathID authored Nov 6, 2020
1 parent 0e2aa88 commit 8705c51
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions base/User.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const mongoose = require("mongoose");

module.exports = mongoose.model("User", new mongoose.Schema({
id: { type: String },
registeredAt: { type: Number, default: Date.now() },
}));

0 comments on commit 8705c51

Please sign in to comment.