elioria-sst-x
    Preparing search index...

    Class SupabaseCalibrationCertificateRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByEquipment.

      Parameters

      • equipmentId: string

        The equipmentId value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CalibrationCertificate[]>

      The function result.

      Objective: In module packages/db/src/repositories/calibration-certificate.repository.ts, retrieve data through findByEquipment.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<CalibrationCertificate | null>

      The function result.

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

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