location updates saved to db and base endpoints for other modules started
This commit is contained in:
+18
-10
@@ -15,6 +15,22 @@ const schema = new Schema({
|
||||
type: Date,
|
||||
required: true,
|
||||
},
|
||||
address: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
city: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
state: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
pincode: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
location: locationSchema,
|
||||
category: {
|
||||
type: String,
|
||||
@@ -25,19 +41,11 @@ const schema = new Schema({
|
||||
type: {
|
||||
type: String,
|
||||
required: true,
|
||||
enum: [
|
||||
"HQ",
|
||||
"BRANCH",
|
||||
"WAREHOUSE",
|
||||
"VENDOR",
|
||||
"PARTNER",
|
||||
"DISTRIBUTOR",
|
||||
"CLIENT",
|
||||
],
|
||||
enum: ["HQ", "BRANCH", "WAREHOUSE"],
|
||||
},
|
||||
entity: {
|
||||
type: Types.ObjectId,
|
||||
required: true,
|
||||
required: false,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user