elioria-sst-x
    Preparing search index...

    Class SupabasePredictionModelRepository

    Implements

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

    The db value.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      Returns Promise<PredictionModel | null>

      The function result.

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

      Behavior: Async; accepts id; returns a value; invokes this.db.select().from(predictionModels).where(eq(predictionM.

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<PredictionModel[]>

      The function result.

      Objective: In module packages/db/src/repositories/predictions.repository.ts, retrieve data through findByTenant.

      Behavior: Async; accepts tenantId; returns a value; invokes this.db .select() .from(predictionModels) .where(eq(predicti.

    • Generated

      Updates data through updateLastRun.

      Parameters

      • id: string

        The id value.

      • tenantId: string

        The tenantId value.

      Returns Promise<void>

      The function result.

      Objective: In module packages/db/src/repositories/predictions.repository.ts, change data through updateLastRun.

      Behavior: Async; accepts id and tenantId; returns a value; invokes this.db .update(predictionModels) .set({ lastRunAt: new Date.