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 inputSchema = new Schema({ name: String }); const createConnectionsSchema = new mongoose.Schema({ // userName: { type: String, default: null }, source: { type: String,unique:false,trim: true ,required: true}, inputConnections: [{ inputConnections: String}], outputConnections: [{ outputConnections: String}] }); module.exports = mongoose.model("Connections", createConnectionsSchema);