Owner field added
This commit is contained in:
parent
9e1ce83b81
commit
b97e81d970
1 changed files with 3 additions and 0 deletions
|
|
@ -11,6 +11,9 @@ mongoose.connect(url,({useNewUrlParser: true, useUnifiedTopology: true})).then(
|
||||||
|
|
||||||
const ConversationSchema = new mongoose.Schema(
|
const ConversationSchema = new mongoose.Schema(
|
||||||
{
|
{
|
||||||
|
owner: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
members: {
|
members: {
|
||||||
type: Array
|
type: Array
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Reference in a new issue