zgo/backend/models/item.js
Rene Vergara 172ebb0171 Implemented basic order service
Implemented adding the component to the viewer and the search in
database.

Fixed bug in search of item list
2021-10-25 15:01:06 -05:00

11 lines
296 B
JavaScript

const mongoose = require('mongoose');
const itemSchema = 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', itemSchema);