NoteSchema
talawa-api / models/Note / NoteSchema
Variable: NoteSchema
> const
NoteSchema: Schema
<any
, Model
<any
, any
, any
, any
, any
, any
>, {}, {}, {}, {}, DefaultSchemaOptions
, { agendaItemId
: ObjectId
; content
: string
; createdAt
: Date
; createdBy
: ObjectId
; updatedAt
: Date
; updatedBy
: null
| ObjectId
; }, Document
<unknown
, {}, FlatRecord
<{ agendaItemId
: ObjectId
; content
: string
; createdAt
: Date
; createdBy
: ObjectId
; updatedAt
: Date
; updatedBy
: null
| ObjectId
; }>> & FlatRecord
<{ agendaItemId
: ObjectId
; content
: string
; createdAt
: Date
; createdBy
: ObjectId
; updatedAt
: Date
; updatedBy
: null
| ObjectId
; }> & object
>
Mongoose schema definition for Note documents.
Param
The content of the note.
Param
The ID of the user who created the note.
Param
Optional: The ID of the user who last updated the note.
Param
The date when the note was created.
Param
Optional: The date when the note was last updated.
Param
The ID of the agenda item associated with the note.