Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • checkAndCreateEmployees(): Promise<void>
  • Creates a single employee for testing purposes.

    Returns Promise<void>

  • checkAndCreateSuperuser(): Promise<void>
  • Checks whether the superuser already exists, and if not, creates one.

    Returns Promise<void>

  • getSuperuser(): Promise<User>
  • Returns the superuser for the application.

    Returns Promise<User>

    The {@link User} that is the superuser for this application

  • init(): PrismaClient
  • Initialises the global {@link PrismaClient}.

    Returns PrismaClient

    A {@link PrismaClient} instance

Generated using TypeDoc