tormenta20 - v0.0.0
    Preparing search index...

    Class IndiceRemissivo

    An entry in the Índice Remissivo (book index) — maps terms to page numbers in T20 sourcebooks.

    Entries with a registroId are linked to a specific record in another table, enabling the bookReference() feature on models.

    IndiceRemissivo.doLivro("t20jaf").all()
    IndiceRemissivo.buscarTermo("espada").all()
    IndiceRemissivo.associados().count() // entries linked to model records
    IndiceRemissivo.naoAssociados().all() // entries without a matching record

    Hierarchy

    • BaseModel
      • IndiceRemissivo
    Index

    Constructors

    Accessors

    • get createdAt(): string

      ISO 8601 timestamp of record creation.

      Returns string

    • get id(): string

      Unique string identifier (e.g. "espada_longa", "guerreiro").

      Returns string

    • get name(): string

      Display name.

      Returns string

    • get registroId(): string | null

      ID of the linked record in tabela, or null for unlinked entries.

      Returns string | null

    • get tabela(): string | null

      Name of the database table this entry links to, or null for unlinked entries.

      Returns string | null

    • get updatedAt(): string

      ISO 8601 timestamp of last update.

      Returns string

    Methods

    • Returns a plain-object representation of this record.

      Returns {
          id: string;
          livro_id: string;
          pagina: number;
          registro_id: string | null;
          tabela: string | null;
          termo: string;
      }