CharacterNote - applebiter/gnatwriter GitHub Wiki
The CharacterNote class represents the relationship between a character and a note.
Attributes
The attributes associated with the characters_notes
table in the database:
user_id: int
The ID of the User who created the ChapterNote database entrystory_id: int
The Story IDcharacter_id: int
The Character IDnote_id: int
The Note IDcreated: str
The creation datetime of the database entry, stored in 'yyyy-mm-dd hh:mm:ss.f' format
The complex attributes returned by the ORM:
user: User
The user who created this database entry. The User is associated with theusers
table in the database.character: Character
The Character with which the Note is associatednote: Note
The Note with which the Character is associated. This attribute is eager-loaded.
serialize()
serialize ( ) -> dict
Only the attributes mapped to the characters_notes
table will be present in the returned dictionary.