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

24 lines
356 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,
required: true,
},
});
const Host = model('Hosts', hosts)
module.exports = Host