parent
b384644672
commit
369d69d4ae
@ -1,20 +1,20 @@
|
|||||||
const mongoose = require("mongoose");
|
//const mongoose = require("mongoose");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const Schema = mongoose.Schema;
|
//const Schema = mongoose.Schema;
|
||||||
const ObjectId = Schema.Types.ObjectId;
|
//const ObjectId = Schema.Types.ObjectId;
|
||||||
|
|
||||||
// Store a random password reset code
|
// Store a random password reset code
|
||||||
const code = Math.floor(100000 + Math.random() * 900000);
|
//const code = Math.floor(100000 + Math.random() * 900000);
|
||||||
const inputSchema = new Schema({ name: String });
|
//const inputSchema = new Schema({ name: String });
|
||||||
const createConnectionsSchema = new mongoose.Schema({
|
//const createConnectionsSchema = new mongoose.Schema({
|
||||||
|
|
||||||
// userName: { type: String, default: null },
|
// userName: { type: String, default: null },
|
||||||
source: { type: String,unique:false,trim: true ,required: true},
|
//source: { type: String,unique:false,trim: true ,required: true},
|
||||||
inputConnections: [{ inputConnections: String}],
|
//inputConnections: [{ inputConnections: String}],
|
||||||
outputConnections: [{ outputConnections: String}]
|
//outputConnections: [{ outputConnections: String}]
|
||||||
|
|
||||||
});
|
//});
|
||||||
|
|
||||||
module.exports = mongoose.model("Connections", createConnectionsSchema);
|
//module.exports = mongoose.model("Connections", createConnectionsSchema);
|
Loading…
Reference in new issue