elioria-sst-x
    Preparing search index...

    Implements

    Index
    db: PostgresJsDatabase<packages/db/src/schema> & {}

    The db value.

    • Generated

      Executes countActiveByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<number>

      The function result.

      Objective: In module packages/db/src/repositories/risk-item.repository.ts, run countActiveByTenant.

      Behavior: Async; accepts tenantId; returns a value; invokes this.db .select({ count: sql<number>count(*) }) .from(risk.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<RiskItem | null>

      The function result.

      Objective: In module packages/db/src/repositories/risk-item.repository.ts, retrieve data through findById.

      Behavior: Async; accepts id and tenantId; returns a value; invokes this.db .select() .from(riskItems) .where(and(eq(riskItems.i.

    • Generated

      Returns the result of findByInventory.

      Parameters

      • inventoryId: string

        The inventoryId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<RiskItem[]>

      The function result.

      Objective: In module packages/db/src/repositories/risk-item.repository.ts, retrieve data through findByInventory.

      Behavior: Async; accepts inventoryId and tenantId; returns a value; invokes this.db .select() .from(riskItems) .where(and(eq(riskItems.i.