Open 97revenge opened 1 year ago
const mongoose = require('mongoose');
const { Schema, model } = require('mongoose');
const { v4: uuidv4 } = require('uuid');
const catalogDB = new Schema({
catalogName: String,
catalogInit: String,
catalogMid: String,
catalogLow: String,
id: String // uuid instance
})
const catalog = model('catalog', catalogDB)
the model and the Schema of
catalog
const generatePath = (req, res) => {
const directedUrl = (`/`).concat(req)
return directedUrl
}
generatePath
creates path strings for .get() and .post() functions "scripts": { "dev": "nodemon app.js", "main": "node app.js" },
A conceptual database relationship.
catalog_name
would be like the name of each area of a menu , a macro-item such as sweet bread would be in bakery .What should be done
dbdiagram.io