Files

24 lines
573 B
JavaScript
Raw Permalink 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-16 20:31:58 +02:00
votes: { type: Number, default: 0 },
2022-08-10 12:23:19 +02:00
bump: Date,
webhook: String,
2022-08-16 20:31:58 +02:00
bumps: { type: Number, default: 0 },
analytics: Object,
analytics_visitors: Number,
analytics_joins: Number,
country: Object,
2022-08-18 14:44:12 +02:00
vanity: String,
2022-08-05 14:59:15 +02:00
});
module.exports = mongoose.model("servers", hm);