CharacterRelationship - applebiter/gnatwriter GitHub Wiki

The CharacterRelationship class represents the relationship between two characters.

Attributes

The attributes associated with the characters_relationships table in the database:

  • id: int The CharacterRelationship ID
  • user_id: int The ID of the user who created the entry in the database
  • parent_id: int The ID of the character from whose point of view the relationship is being defined
  • position: in The parent character's defined relationships are ordered according to this value
  • related_id: int The ID of the character with whom the parent character's relationship has been defined
  • relationship_type: str The basic type of relationship can be one of five types, including Family, Personal, Romantic, Professional, or Other.

Methods