Skip to content

Commit

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

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

0 comments on commit 1327571

Please sign in to comment.