You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
562 B
19 lines
562 B
3 years ago
|
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 },
|
||
|
});
|
||
|
|
||
|
module.exports = mongoose.model("Tanker", tankersSchema);
|