chartManD commited on
Commit
5fae62b
·
1 Parent(s): 20429d2
Files changed (1) hide show
  1. src/database/models/glucosa.js +11 -8
src/database/models/glucosa.js CHANGED
@@ -1,13 +1,16 @@
1
  const mongoose = require("mongoose");
2
 
3
- const glucosa = new mongoose.Schema({
4
- glucosa: { type: Number, required: true },
5
- ayuno: Boolean,
6
- comentario: { type: String, default: null },
7
- createdAt: { type: Date, default: Date.now },
8
- iduser: String,
9
- });
 
 
 
10
 
11
- const Glucosa = mongoose.model("glucosa", glucosa);
12
 
13
  module.exports = Glucosa;
 
1
  const mongoose = require("mongoose");
2
 
3
+ const glucosa = new mongoose.Schema(
4
+ {
5
+ glucosa: { type: Number, required: true },
6
+ ayuno: Boolean,
7
+ comentario: { type: String, default: null },
8
+ createdAt: { type: Date, default: Date.now },
9
+ iduser: String,
10
+ },
11
+ { collation: "glucosa" }
12
+ );
13
 
14
+ const Glucosa = mongoose.model("Glucosa", glucosa);
15
 
16
  module.exports = Glucosa;