better-buddy-share-backend
    Preparing search index...

    Repository for user operations with caching support. Provides methods for user CRUD operations while maintaining cache consistency.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Methods

    • Bans a user account with an optional reason.

      Parameters

      • user_id: number

        The ID of the user to ban

      • reason: string | null = null

        Optional reason for the ban

      Returns Promise<User | null>

      Promise resolving to the updated user object

    • Creates a new user account.

      Parameters

      • username: string

        The username for the new account

      • email: string

        The email address for the new account

      • password: string

        The password for the new account

      Returns Promise<User | null>

      Promise resolving to the created user object