ChapterLink - applebiter/gnatwriter GitHub Wiki
The ChapterLink class represents the relationship between a Chapter and a Link.
Attributes
The attributes associated with the chapters_links
table in the database:
user_id: int
The ID of the User who created the ChapterLink entry in the databasestory_id: int
The Story IDchapter_id: int
The Chapter IDlink_id: int
The Link 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.story: Story
The Story to which this ChapterLink belongs.chapter: Chapter
The Chapter with which the Link is associatedlink: Link
The Link with which the Chapter is associated. This attribute is eager-loaded.
serialize()
serialize ( ) -> dict
Only the attributes mapped to the chapters_links
table will be present in the returned dictionary.