@whatsveg/wv-data-model 1.0.0 → 1.0.2
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/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/models/Area.d.ts +6 -0
- package/dist/models/Area.d.ts.map +1 -0
- package/dist/models/Area.js +10 -0
- package/dist/models/Area.js.map +1 -0
- package/dist/models/Category.d.ts +6 -0
- package/dist/models/Category.d.ts.map +1 -0
- package/dist/models/Category.js +10 -0
- package/dist/models/Category.js.map +1 -0
- package/dist/models/City.d.ts +6 -0
- package/dist/models/City.d.ts.map +1 -0
- package/dist/models/City.js +10 -0
- package/dist/models/City.js.map +1 -0
- package/dist/models/Pincode.d.ts +6 -0
- package/dist/models/Pincode.d.ts.map +1 -0
- package/dist/models/Pincode.js +10 -0
- package/dist/models/Pincode.js.map +1 -0
- package/dist/models/Product.d.ts +6 -0
- package/dist/models/Product.d.ts.map +1 -0
- package/dist/models/Product.js +10 -0
- package/dist/models/Product.js.map +1 -0
- package/dist/models/Store.d.ts +6 -0
- package/dist/models/Store.d.ts.map +1 -0
- package/dist/models/Store.js +10 -0
- package/dist/models/Store.js.map +1 -0
- package/dist/models/Unit.d.ts +6 -0
- package/dist/models/Unit.d.ts.map +1 -0
- package/dist/models/Unit.js +10 -0
- package/dist/models/Unit.js.map +1 -0
- package/dist/models/User.d.ts +6 -0
- package/dist/models/User.d.ts.map +1 -0
- package/dist/models/User.js +10 -0
- package/dist/models/User.js.map +1 -0
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +38 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/mappings/CategoryArea.d.ts +4 -0
- package/dist/models/mappings/CategoryArea.d.ts.map +1 -0
- package/dist/models/mappings/CategoryArea.js +11 -0
- package/dist/models/mappings/CategoryArea.js.map +1 -0
- package/dist/models/mappings/ProductArea.d.ts +6 -0
- package/dist/models/mappings/ProductArea.d.ts.map +1 -0
- package/dist/models/mappings/ProductArea.js +11 -0
- package/dist/models/mappings/ProductArea.js.map +1 -0
- package/dist/models/mappings/StoreArea.d.ts +6 -0
- package/dist/models/mappings/StoreArea.d.ts.map +1 -0
- package/dist/models/mappings/StoreArea.js +11 -0
- package/dist/models/mappings/StoreArea.js.map +1 -0
- package/dist/models/mappings/index.d.ts +4 -0
- package/dist/models/mappings/index.d.ts.map +1 -0
- package/dist/models/mappings/index.js +13 -0
- package/dist/models/mappings/index.js.map +1 -0
- package/dist/schemas/AreaSchema.d.ts +95 -0
- package/dist/schemas/AreaSchema.d.ts.map +1 -0
- package/dist/schemas/AreaSchema.js +85 -0
- package/dist/schemas/AreaSchema.js.map +1 -0
- package/dist/schemas/CategoryAreaSchema.d.ts +86 -0
- package/dist/schemas/CategoryAreaSchema.d.ts.map +1 -0
- package/dist/schemas/CategoryAreaSchema.js +45 -0
- package/dist/schemas/CategoryAreaSchema.js.map +1 -0
- package/dist/schemas/CategorySchema.d.ts +125 -0
- package/dist/schemas/CategorySchema.d.ts.map +1 -0
- package/dist/schemas/CategorySchema.js +80 -0
- package/dist/schemas/CategorySchema.js.map +1 -0
- package/dist/schemas/CitySchema.d.ts +85 -0
- package/dist/schemas/CitySchema.d.ts.map +1 -0
- package/dist/schemas/CitySchema.js +35 -0
- package/dist/schemas/CitySchema.js.map +1 -0
- package/dist/schemas/PincodeSchema.d.ts +65 -0
- package/dist/schemas/PincodeSchema.d.ts.map +1 -0
- package/dist/schemas/PincodeSchema.js +26 -0
- package/dist/schemas/PincodeSchema.js.map +1 -0
- package/dist/schemas/ProductAreaSchema.d.ts +95 -0
- package/dist/schemas/ProductAreaSchema.d.ts.map +1 -0
- package/dist/schemas/ProductAreaSchema.js +35 -0
- package/dist/schemas/ProductAreaSchema.js.map +1 -0
- package/dist/schemas/ProductSchema.d.ts +145 -0
- package/dist/schemas/ProductSchema.d.ts.map +1 -0
- package/dist/schemas/ProductSchema.js +108 -0
- package/dist/schemas/ProductSchema.js.map +1 -0
- package/dist/schemas/StoreAreaSchema.d.ts +75 -0
- package/dist/schemas/StoreAreaSchema.d.ts.map +1 -0
- package/dist/schemas/StoreAreaSchema.js +25 -0
- package/dist/schemas/StoreAreaSchema.js.map +1 -0
- package/dist/schemas/StoreSchema.d.ts +145 -0
- package/dist/schemas/StoreSchema.d.ts.map +1 -0
- package/dist/schemas/StoreSchema.js +65 -0
- package/dist/schemas/StoreSchema.js.map +1 -0
- package/dist/schemas/UnitSchema.d.ts +81 -0
- package/dist/schemas/UnitSchema.d.ts.map +1 -0
- package/dist/schemas/UnitSchema.js +69 -0
- package/dist/schemas/UnitSchema.js.map +1 -0
- package/dist/schemas/UserSchema.d.ts +196 -0
- package/dist/schemas/UserSchema.d.ts.map +1 -0
- package/dist/schemas/UserSchema.js +81 -0
- package/dist/schemas/UserSchema.js.map +1 -0
- package/dist/schemas/index.d.ts +23 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +29 -0
- package/dist/schemas/index.js.map +1 -0
- package/package.json +33 -11
- package/src/index.js +0 -1
- package/src/models/User.js +0 -6
- package/src/models/index.js +0 -3
- package/src/schemas/UserSchema.js +0 -32
- package/src/schemas/index.js +0 -3
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const mongoose = require("mongoose");
|
|
2
|
-
|
|
3
|
-
const UserSchema = new mongoose.Schema(
|
|
4
|
-
{
|
|
5
|
-
userId: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: true,
|
|
8
|
-
unique: true
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
name: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: true
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
email: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: true,
|
|
19
|
-
lowercase: true
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
age: {
|
|
23
|
-
type: Number,
|
|
24
|
-
default: 18
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
timestamps: true
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
module.exports = UserSchema;
|
package/src/schemas/index.js
DELETED