|
|
@ -43,7 +43,7 @@ const tankersbookingSchema = new mongoose.Schema({
|
|
|
|
typeofwater: { type: String, default: null },
|
|
|
|
typeofwater: { type: String, default: null },
|
|
|
|
capacity: { type: String, default: null },
|
|
|
|
capacity: { type: String, default: null },
|
|
|
|
address: { type: String, default: null },
|
|
|
|
address: { type: String, default: null },
|
|
|
|
price: { type: String, default: "750" },
|
|
|
|
actual_price: { type: String, default: "750" },
|
|
|
|
payment_status : { type: String, default: "due" },
|
|
|
|
payment_status : { type: String, default: "due" },
|
|
|
|
orderStatus: { type: String, default: "pending" },
|
|
|
|
orderStatus: { type: String, default: "pending" },
|
|
|
|
delivery_agent : { type: String, default: "null" },
|
|
|
|
delivery_agent : { type: String, default: "null" },
|
|
|
@ -56,6 +56,8 @@ const tankersbookingSchema = new mongoose.Schema({
|
|
|
|
quantityDelivered: { type: String, default: null},
|
|
|
|
quantityDelivered: { type: String, default: null},
|
|
|
|
amount_paid: { type: String, default: null },
|
|
|
|
amount_paid: { type: String, default: null },
|
|
|
|
amount_due: { type: String, default: null },
|
|
|
|
amount_due: { type: String, default: null },
|
|
|
|
|
|
|
|
distrubance_price: { type: String, default: "none" },
|
|
|
|
|
|
|
|
amount_difference: { type: String, default: "none" },
|
|
|
|
payment_mode: { type: String, default: null },
|
|
|
|
payment_mode: { type: String, default: null },
|
|
|
|
remarks : { type: String, default: null },
|
|
|
|
remarks : { type: String, default: null },
|
|
|
|
customerPhone : { type: String, default: null },
|
|
|
|
customerPhone : { type: String, default: null },
|
|
|
@ -89,6 +91,15 @@ const GovtPipeLineSchema = new mongoose.Schema({
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const UserSupplierAccountsSchema = new mongoose.Schema({
|
|
|
|
|
|
|
|
customerId: { type: String, default: null },
|
|
|
|
|
|
|
|
supplierId: { type: String, default: null },
|
|
|
|
|
|
|
|
amount_due: { type: String, default: null },
|
|
|
|
|
|
|
|
amount_paid:{ type: String, default: null },
|
|
|
|
|
|
|
|
amount_advance: { type: String, default: null },
|
|
|
|
|
|
|
|
delivered_tankers: { type: String, default: null },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -96,9 +107,11 @@ const Tanker = mongoose.model("Tanker", tankersSchema);
|
|
|
|
const Tankerbooking = mongoose.model("Tankerbooking", tankersbookingSchema);
|
|
|
|
const Tankerbooking = mongoose.model("Tankerbooking", tankersbookingSchema);
|
|
|
|
const Bore = mongoose.model("Bore", boreSchema);
|
|
|
|
const Bore = mongoose.model("Bore", boreSchema);
|
|
|
|
const GovtPipeLine = mongoose.model("GovtPipeLine", GovtPipeLineSchema);
|
|
|
|
const GovtPipeLine = mongoose.model("GovtPipeLine", GovtPipeLineSchema);
|
|
|
|
|
|
|
|
const UserSupplierAccounts = mongoose.model("UserSupplierAccounts", UserSupplierAccountsSchema);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Exporting our model objects
|
|
|
|
// Exporting our model objects
|
|
|
|
module.exports = {
|
|
|
|
module.exports = {
|
|
|
|
Tanker, Tankerbooking,Bore,GovtPipeLine
|
|
|
|
Tanker, Tankerbooking,Bore,GovtPipeLine,UserSupplierAccounts
|
|
|
|
}
|
|
|
|
}
|
|
|
|