Files
BotsCord/models/server.js
T

19 lines
404 B
JavaScript
Raw Normal View History

2022-08-05 14:59:15 +02:00
const mongoose = require("mongoose");
let hm = new mongoose.Schema({
id: String,
name: String,
2022-08-10 20:17:21 +02:00
description: {
2022-08-11 21:27:14 +02:00
type: String, maxLength: 100
2022-08-10 20:17:21 +02:00
},
2022-08-05 14:59:15 +02:00
owner: String,
long_description: String,
tags: [String],
premium: Boolean,
2022-08-11 21:27:14 +02:00
invite: String,
2022-08-08 10:55:08 +02:00
votes: Number,
2022-08-10 12:23:19 +02:00
bump: Date,
webhook: String,
bumps: Number,
2022-08-05 14:59:15 +02:00
});
module.exports = mongoose.model("servers", hm);