AuthorStory - applebiter/gnatwriter GitHub Wiki
The AuthorStory class represents the relationship between an Author and a Story.
Attributes
The attributes associated with the authors_stories table in the database:
author_id: intThe Author IDstory_id: intThe Story IDuser_id: intThe ID of the User who created this AuthorStory entry in the databasecreated: strThe creation datetime of the database entry, stored in 'yyyy-mm-dd hh:mm:ss.f' format
The following, complex attributes are returned by the ORM:
user: UserThe user who created this database entry. The User is associated with theuserstable in the database.author: AuthorThe Author is eager-loaded into the AuthorStory objectstory: StoryThe Story to which this AuthorStory belongs.
serialize()
serialize ( ) -> dict Only the attributes mapped to the authors_stories table will be present in the returned dictionary.