|
|
|
@ -11,7 +11,7 @@ const RoleSchema = new Schema({ name: String });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const tankersSchema = new mongoose.Schema({
|
|
|
|
|
|
|
|
|
|
customerId: { type: String, default: null },
|
|
|
|
|
tankerName: { type: String, default: null },
|
|
|
|
|
phoneNumber: { type: String, default: null },
|
|
|
|
|
typeofwater: [{ type: String, default: null }],
|
|
|
|
@ -20,7 +20,7 @@ const tankersSchema = new mongoose.Schema({
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const tankersbookingSchema = new mongoose.Schema({
|
|
|
|
|
|
|
|
|
|
customerId: { type: String, default: null },
|
|
|
|
|
bookingid: { type: String, default: null,unique: true },
|
|
|
|
|
dateOfOrder: { type: String, default: null },
|
|
|
|
|
typeofwater: { type: String, default: null },
|
|
|
|
@ -37,7 +37,7 @@ const tankersbookingSchema = new mongoose.Schema({
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const boreSchema = new mongoose.Schema({
|
|
|
|
|
|
|
|
|
|
customerId: { type: String, default: null },
|
|
|
|
|
boreName: { type: String, default: null },
|
|
|
|
|
typeofwater: { type: String, default: null },
|
|
|
|
|
description: { type: String, default: null },
|
|
|
|
@ -45,6 +45,7 @@ const boreSchema = new mongoose.Schema({
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Tanker = mongoose.model("Tanker", tankersSchema);
|
|
|
|
|
const Tankerbooking = mongoose.model("Tankerbooking", tankersbookingSchema);
|
|
|
|
|
const Bore = mongoose.model("Bore", boreSchema);
|
|
|
|
|