Skip to content

Commit

Permalink
Create db.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistydz authored Aug 14, 2021
1 parent 6e8599e commit 11aa477
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions models/db.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const mongoose = require('mongoose')

const dbSchema = new mongoose.Schema({
currencyName: {
type: String,
required: true,
},
buyPrice: {
type: Number,
required: true,
},
sellPrice: {
type: Number,
required: true,
},
})

const db = mongoose.model("db", dbSchema)
module.exports = db

0 comments on commit 11aa477

Please sign in to comment.