parent
b384644672
commit
369d69d4ae
@ -1,20 +1,20 @@
|
||||
const mongoose = require("mongoose");
|
||||
//const mongoose = require("mongoose");
|
||||
|
||||
|
||||
|
||||
const Schema = mongoose.Schema;
|
||||
const ObjectId = Schema.Types.ObjectId;
|
||||
//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({
|
||||
//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}]
|
||||
//source: { type: String,unique:false,trim: true ,required: true},
|
||||
//inputConnections: [{ inputConnections: String}],
|
||||
//outputConnections: [{ outputConnections: String}]
|
||||
|
||||
});
|
||||
//});
|
||||
|
||||
module.exports = mongoose.model("Connections", createConnectionsSchema);
|
||||
//module.exports = mongoose.model("Connections", createConnectionsSchema);
|
Loading…
Reference in new issue