lfra_db 1.0.0 → 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/index.js CHANGED
@@ -81,7 +81,6 @@ const models = {
81
81
  Penalty: require('./src/models/penalty'),
82
82
  Reminder: require('./src/models/reminder'),
83
83
  BankDetails: require('./src/models/bankdetails'),
84
- John:require('./src/models/john')
85
84
  };
86
85
 
87
86
  // Function to get models dynamically from a specific database connection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lfra_db",
3
- "version": "1.0.0",
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
@@ -43,6 +43,14 @@ const visitorSchema = new mongoose.Schema({
43
43
  type: mongoose.Schema.Types.ObjectId,
44
44
  ref: 'Facility',
45
45
  },
46
+ invited:{
47
+ type:Boolean,
48
+ required:false
49
+ },
50
+ invitationDate:{
51
+ type:String,
52
+ required:false
53
+ }
46
54
  }, {
47
55
  timestamps: true // Automatically add createdAt and updatedAt fields
48
56
  });
@@ -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