first-space / src /models /glucosa.js
chartManD's picture
get de registros glucosa por id usuario
a98870b
raw
history blame
394 Bytes
const mongoose = require("mongoose");
const glucosaSchema = new mongoose.Schema(
{
glucosa: { type: Number, required: true },
ayuno: Boolean,
comentario: { type: String, default: null },
createdAt: { type: Date, default: Date.now },
iduser: String,
},
{ collection: "glucosa" }
);
const Glucosa = mongoose.model("Glucosa", glucosaSchema);
module.exports = Glucosa;