import { Prisma , Role } from '@prisma/client' ; import { hashPassword } from '../../../services/auth' ; const INITIAL_PASSWORD = 'test1234' ; const initialDevUsers = [ { email : 'barry.allen@speedforce.net' , password : hashPassword ( INITIAL_PASSWORD ) , roles : [ Role . ADMIN ] , profile : { create : { firstName : 'Barry' , lastName : 'Allen' , } , } , } , ] ; const INITIAL_PROD_PASSWORD = 'strong@password' ; const initialProdUsers = [ { email : 'apps@echobind.com' , password : hashPassword ( INITIAL_PROD_PASSWORD ) , roles : [ Role . ADMIN ] , profile : { create : { firstName : 'EB' , lastName : 'Admin' , } , } , } , ] ; const appEnv = process . env . APP_ENV || 'development' ; export const userSeedData = appEnv === 'production' ? initialProdUsers : initialDevUsers ;