ChapterNote - applebiter/gnatwriter GitHub Wiki
The ChapterNote class represents the relationship between a Chapter and a Note.
Attributes
The attributes associated with the chapters_notes table in the database:
user_id: intThe ID of the User who created the ChapterNote database entrystory_id: intThe Story IDchapter_id: intThe Chapter IDnote_id: intThe Note IDcreated: strThe creation datetime of the database entry, stored in 'yyyy-mm-dd hh:mm:ss.f' format
The complex attributes returned by the ORM:
user: UserThe user who created this database entry. The User is associated with theuserstable in the database.story: StoryThe Story to which this ChapterNote belongschapter: ChapterThe Chapter with which the Note is associatednote: NoteThe Note with which the Chapter is associated. This attribute is eager-loaded.
serialize()
serialize ( ) -> dict Only the attributes mapped to the chapters_notes table will be present in the returned dictionary.