Spaces:
Runtime error
Runtime error
Download src/models/glucosa.js from chartManD/first-space: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/spaces/chartManD/first-space/resolve/main/src/models/glucosa.js
- Command line
-
hf download hf://spaces/chartManD/first-space/src/models/glucosa.js
-
curl -L -o glucosa.js https://huggingface.co/spaces/chartManD/first-space/resolve/main/src/models/glucosa.js
446 Bytes
| 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; | |