lfra_db 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lfra_db",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -150,6 +150,10 @@ const CustomerSchema = new mongoose.Schema({
150
150
  type: String,
151
151
  required: false
152
152
  },
153
+ color:{
154
+ type:String,
155
+ required:false
156
+ },
153
157
  plateNumber: {
154
158
  type: String,
155
159
  required: false
@@ -46,6 +46,10 @@ const visitorSchema = new mongoose.Schema({
46
46
  invited:{
47
47
  type:Boolean,
48
48
  required:false
49
+ },
50
+ invitationDate:{
51
+ type:String,
52
+ required:false
49
53
  }
50
54
  }, {
51
55
  timestamps: true // Automatically add createdAt and updatedAt fields
@@ -1,9 +0,0 @@
1
- const mongoose = require('mongoose');
2
- const johnSchema = mongoose.Schema({
3
- fullName:{
4
- type:String,
5
- required:true
6
- }
7
- })
8
- const John = mongoose.model('John',johnSchema);
9
- module.exports = John