elioria-sst-x
    Preparing search index...

    Implements

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

    The db value.

    • Generated

      Returns the result of findByEmail.

      Parameters

      • email: string

        The email value.

      Returns Promise<User | null>

      The function result.

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

      Behavior: Async; accepts email; returns a value; invokes email.trim().toLowerCase.

    • Generated

      Returns the result of findById.

      Parameters

      • id: string

        The id value.

      Returns Promise<User | null>

      The function result.

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

      Behavior: Async; accepts id; returns a value; invokes this.db.select().from(users).where(eq(users.id, id)).limit.

    • Generated

      Returns the result of findBySupabaseUid.

      Parameters

      • uid: string

        The uid value.

      Returns Promise<User | null>

      The function result.

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

      Behavior: Async; accepts uid; returns a value; invokes this.db.select().from(users).where(eq(users.supabaseUid, uid.

    • Generated

      Returns the result of findByTenant.

      Parameters

      • tenantId: string

        The tenantId value.

      Returns Promise<User[]>

      The function result.

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

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

    • Generated

      Executes update.

      Parameters

      • id: string

        The id value.

      • data: Partial<
            {
                email: string;
                isActive: boolean;
                name: string;
                profile: string;
                tenantId: string;
            },
        >

        The data value.

      Returns Promise<User | null>

      The function result.

      Objective: In module packages/db/src/repositories/user.repository.ts, run update.

      Behavior: Async; accepts id and data; returns a value; invokes data.email.trim().toLowerCase.

    • Generated

      Updates data through updateLastLogin.

      Parameters

      • id: string

        The id value.

      Returns Promise<void>

      The function result.

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

      Behavior: Async; accepts id; returns a value; invokes this.db.update(users).set({ lastLoginAt: new Date() }).where.

    • Generated

      Updates data through updateSupabaseUid.

      Parameters

      • id: string

        The id value.

      • supabaseUid: string

        The supabaseUid value.

      Returns Promise<void>

      The function result.

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

      Behavior: Async; accepts id and supabaseUid; returns a value; invokes this.db.update(users).set({ supabaseUid, updatedAt: new Date.