| 17 | }); |
| 18 | |
| 19 | interface IDiscussionDocument extends mongoose.Document { |
| 20 | teamId: string; |
| 21 | discussionLeaderId: string; |
| 22 | discussionName: string; |
| 23 | discussionMemberIds: string[]; |
| 24 | createdAt: Date; |
| 25 | lastUpdatedAt: Date; |
| 26 | isDiscussionArchived: boolean; |
| 27 | firstCommentId: string; |
| 28 | initialComments: any[]; |
| 29 | } |
| 30 | |
| 31 | mongoSchema.index({ _id: 1, discussionName: 1 }, { unique: true }); |
| 32 | mongoSchema.index({ teamId: 1, discussionName: 1 }, { unique: true }); |
nothing calls this directly
no outgoing calls
no test coverage detected