tango-api-schema 1.0.75 → 1.0.76

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": "tango-api-schema",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,39 +1,9 @@
1
1
  import mongoose from 'mongoose';
2
2
 
3
- const nobSchema=new mongoose.Schema( {
4
-
5
- client: { // client_Id changed to clientId
6
- type: mongoose.Schema.Types.ObjectId,
7
- ref: 'Brand',
8
- },
9
- clientId: {
10
- type: String,
11
- trim: true,
12
- },
13
- storeId: {
14
- type: String,
15
- trim: true,
16
- },
17
- nobDate: {
18
- type: Date,
19
- required: true,
20
- },
21
- store: {
22
- type: mongoose.Schema.Types.ObjectId,
23
- ref: 'Store',
24
- },
25
- nobCount: {
26
- type: Number,
27
- trim: true,
28
- },
29
- nobAmount: {
30
- type: mongoose.Schema.Types.Decimal128,
31
- //default: '0.0',
32
- },
33
- }, {
34
- strict: true,
35
- versionKey: false,
3
+ const nobSchema=new mongoose.Schema( {}, {
36
4
  timestamps: true,
5
+ strict: false,
6
+ versionKey: false,
37
7
  } );
38
8
 
39
9
  export default mongoose.model( 'nobBilling', nobSchema, 'nobBilling' );
@@ -1,43 +1,9 @@
1
1
  import mongoose from 'mongoose';
2
2
 
3
- const nobSchema=new mongoose.Schema( {
4
-
5
- client: { // client_Id changed to clientId
6
- type: mongoose.Schema.Types.ObjectId,
7
- ref: 'Brand',
8
- },
9
- clientId: {
10
- type: String,
11
- trim: true,
12
- },
13
- storeId: {
14
- type: String,
15
- trim: true,
16
- },
17
- nobDate: {
18
- type: Date,
19
- required: true,
20
- },
21
- store: {
22
- type: mongoose.Schema.Types.ObjectId,
23
- ref: 'Store',
24
- },
25
- nobCount: {
26
- type: Number,
27
- trim: true,
28
- },
29
- nobHour: {
30
- type: Number,
31
- trim: true,
32
- },
33
- nobAmount: {
34
- type: mongoose.Schema.Types.Decimal128,
35
- //default: '0.0',
36
- },
37
- }, {
38
- strict: true,
39
- versionKey: false,
3
+ const nobSchema=new mongoose.Schema( {}, {
40
4
  timestamps: true,
5
+ strict: false,
6
+ versionKey: false,
41
7
  } );
42
8
 
43
9
  export default mongoose.model( 'nobBillingHourly', nobSchema, 'nobBillingHourly' );