CharacterImage - applebiter/gnatwriter GitHub Wiki
The CharacterImage class represents the relationship between a character and an image.
Attributes
The attributes associated with the characters_images table in the database:
user_id: intThe ID of the user who created the entry in the databasecharacter_id: intThe Character IDimage_id: intThe Image IDposition: intDefines the order of this image among all images associated with the same characteris_default: boolDetermines whether the Image is to be considered the default image for the charactercreated: strThis is actually a Python Datetime object except for input and outputmodified: strThis is also a Python Datetime object and is updated with every update of the relationship of the image to the character
The complex attributes supplied by the ORM:
user: UserThe User class is associated with theuserstable in the database.character: CharacterThe character that is associated with the imageimage: ImageThe image that is associated with the character. This attribute is eager-loaded.
serialize()
serialize ( ) -> dict Only the attributes mapped to the characters_images table will be present in the returned dictionary.