mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 21:24:59 +05:00
15 lines
370 B
JavaScript
15 lines
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
|
||
|
}}
|
||
|
}));
|