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: int
The ID of the User who created the entry in the databasecharacter_id: int
The Character IDevent_id: int
The Event 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 that is associated with an eventevent: Event
The 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.