const mongoose = require("mongoose"); const Schema = mongoose.Schema; const ObjectId = Schema.Types.ObjectId; // Store a random password reset code const code = Math.floor(100000 + Math.random() * 900000); const RoleSchema = new Schema({ name: String }); const tankersSchema = new mongoose.Schema({ tankerName: { type: String, default: null }, phoneNumber: { type: String, default: null }, typeofwater: [{ type: String, default: null }], capacity: [{ type: String, default: null }], }); const tankersbookingSchema = new mongoose.Schema({ bookingid: { type: String, default: null,unique: true }, typeofwater: { type: String, default: null }, capacity: { type: String, default: null }, address: { type: String, default: null }, dateTime: { type: String, default: null }, amount : { type: String, default: "due" }, }); const Tanker = mongoose.model("Tanker", tankersSchema); const Tankerbooking = mongoose.model("Tankerbooking", tankersbookingSchema); // Exporting our model objects module.exports = { Tanker, Tankerbooking }