You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
apl-nuke/src/models/hosts.js

23 lines
335 B
JavaScript

const { Schema, model } = require('mongoose')
const hosts = new Schema({
username: {
type: String,
required: true,
},
name: {
type: String,
required: true,
},
twitter: {
type: String,
required: true,
},
image: {
type: String,
}
});
const Host = model('Hosts', hosts)
module.exports = Host