Delete just for Khai
This commit is contained in:
parent
0533dae04a
commit
bc6aa6dd28
11 changed files with 0 additions and 2369 deletions
|
|
@ -1,20 +0,0 @@
|
|||
const config = require('../config');
|
||||
const mongoose = require( 'mongoose' );
|
||||
const url = config.mongodbHost+config.mongodbDatabase;
|
||||
|
||||
mongoose.connect(url,({useNewUrlParser: true, useUnifiedTopology: true})).then( function(){
|
||||
console.log('mongodb-privated-room connected '+mongoose.connection.readyState);
|
||||
}).catch(function(err){
|
||||
console.log('error : '+err);
|
||||
});
|
||||
|
||||
const ConversationSchema = new mongoose.Schema(
|
||||
{
|
||||
members: {
|
||||
type: Array
|
||||
},
|
||||
},
|
||||
{ timestamps: true }
|
||||
);
|
||||
|
||||
module.exports = mongoose.model("Conversation", ConversationSchema);
|
||||
Reference in a new issue