@misterzik/espressojs
Version:
EspressoJS Introducing Espresso.JS, your ultimate Express configuration starting point and boilerplate. With its simplicity and lack of opinionation, EspressoJS offers plug-and-play configurations built on top of Express.
21 lines (20 loc) • 451 B
JavaScript
/*
* _| _| _| _| _|_|_|
* _| _| _|_| _|_| _| _|
* _| _| _| _| _| _| _|
* _| _| _| _| _| _|
* _| _| _| _|_|_|
* MongoDB Schema Clients Sample
*/
const mongoose = require("mongoose");
const clientSchema = mongoose.Schema(
{
name: String,
email: String,
location: String,
},
{
timestamps: true,
}
);
module.exports = mongoose.model("clients", clientSchema);