import { prisma } from './prisma'

/**
 * Check if the initial setup is required.
 * Setup is required when there are no staff members in the database.
 */
export async function isSetupRequired(): Promise<boolean> {
  const staffCount = await prisma.staff.count()
  return staffCount === 0
}
