zgo/backend/models/item.js
2021-10-20 15:51:14 -05:00

10 lines
296 B
JavaScript

const mongoose = require('mongoose');
const userSchema = mongoose.Schema({
name: {type: String, required: true},
description: {type: String, required: true},
user: {type: String, required: true},
cost: {type: Number, required: true}
});
module.exports = mongoose.model('Item', userSchema);