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.
20 lines
618 B
20 lines
618 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 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);
|