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.
28 lines
867 B
28 lines
867 B
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 tanksSchema = new mongoose.Schema({
|
|
|
|
userName: { type: String, default: null },
|
|
tankName: { type: String, default: null },
|
|
blockName: { type: String, default: null },
|
|
capacity: { type: String, default: null },
|
|
typeOfWater: { type: String, default: null },
|
|
type: { type: String, default: null },
|
|
tankLocation: { type: String, default: null },
|
|
connections: {
|
|
source: { type: String},
|
|
inputConnections: [{ inputConnections: String}],
|
|
outputConnections: [{ outputConnections: String}]
|
|
}
|
|
|
|
});
|
|
|
|
module.exports = mongoose.model("Tank", tanksSchema); |