elioria-sst-x
    Preparing search index...

    Class SupabaseMeasurementEquipmentRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findByCompany.

      Parameters

      • tenantId: string

        The tenantId value.

      • companyId: string

        The companyId value.

      Returns Promise<MeasurementEquipment[]>

      The function result.

      Objective: In module packages/db/src/repositories/measurement-equipment.repository.ts, retrieve data through findByCompany.

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

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      • OptionalcompanyId: string

        The companyId value.

      • OptionalunitId: string

        The unitId value.

      Returns Promise<MeasurementEquipment | null>

      The function result.

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

      Behavior: Async; accepts id and tenantId and companyId and unitId; returns a value; invokes eq.