Spaces:
Runtime error
Runtime error
File size: 446 Bytes
5fa9cef a35d5d9 5fae62b 7ae259a 5fae62b 7ae259a 5fae62b 519316f 5fae62b 4ad9c00 a35d5d9 4ad9c00 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
const mongoose = require("mongoose");
const glucosaSchema = new mongoose.Schema(
{
glucosa: { type: Number, required: true },
ayuno: { type: Boolean, required: true },
comentario: { type: String, default: null },
createdAt: { type: Date, default: Date.now },
iduser: { type: String, required: true },
},
{ collection: "glucosa" }
);
const Glucosa = mongoose.model("Glucosa", glucosaSchema);
module.exports = Glucosa;
|