mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-29 00:24:58 +05:00
15 lines
No EOL
370 B
JavaScript
15 lines
No EOL
370 B
JavaScript
const mongoose = require("mongoose");
|
|
|
|
module.exports = mongoose.model("Log", new mongoose.Schema({
|
|
commandName: { type: String, default: "unknown" },
|
|
date: { type: Number, default: Date.now() },
|
|
author: { type: Object, default: {
|
|
username: "Unknown",
|
|
discrminator: "0000",
|
|
id: null
|
|
}},
|
|
guild: { type: Object, default: {
|
|
name: "Unknown",
|
|
id: null
|
|
}}
|
|
})); |