mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-14 19:46:29 +08:00
21 lines
502 B
JavaScript
21 lines
502 B
JavaScript
|
const mongoose = require("mongoose");
|
||
|
const Schema = mongoose.Schema;
|
||
|
|
||
|
const botCommandSchema = new Schema(
|
||
|
{
|
||
|
command: { type: String, required: true },
|
||
|
arguments: [{ type: Schema.Types.Mixed }],
|
||
|
executedTimestamp: { type: Date },
|
||
|
requestTimestamp: { type: Date },
|
||
|
executed: { type: Boolean, default: false },
|
||
|
status: { type: String },
|
||
|
},
|
||
|
{
|
||
|
timestamps: true,
|
||
|
}
|
||
|
);
|
||
|
|
||
|
const BotCommand = mongoose.model("BotCommand", botCommandSchema);
|
||
|
|
||
|
module.exports = { BotCommand };
|