Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions DevBot V1/models/note.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const mongoose = require("mongoose");

const notedbSchema = mongoose.Schema({

_id: mongoose.Schema.Types.ObjectId,
userID: String,
modID: String,
note: String

});

module.exports = mongoose.model("notedb", notedbSchema)
14 changes: 14 additions & 0 deletions DevBot V1/models/punishment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This will be used by bans, mutes and kicks to make it easier. punishment type will be stated in "type"
const mongoose = require("mongoose");

const punishmentdbSchema = mongoose.Schema({

_id: mongoose.Schema.Types.ObjectId,
type: String,
userID: String,
modID: String,
reason: String

});

module.exports = mongoose.model("punishmentdb", punishmentdbSchema)
12 changes: 12 additions & 0 deletions DevBot V1/models/warn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const mongoose = require("mongoose");

const warndbSchema = mongoose.Schema({

_id: mongoose.Schema.Types.ObjectId,
userID: String,
modID: String,
reason: String

});

module.exports = mongoose.model("warndb", warndbSchema)