CharacterEvent - applebiter/gnatwriter GitHub Wiki
The CharacterEvent class represents the relationship between a character and an event.
Attributes
The attributes associated with the characters_events table in the database:
user_id: intThe ID of the User who created the entry in the databasecharacter_id: intThe Character IDevent_id: intThe Event 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.character: CharacterThe character that is associated with an eventevent: EventThe event that is associated with a character. This attribute is eager-loaded.
serialize()
serialize ( ) -> dict Only the attributes mapped to the characters_events table will be present in the returned dictionary.