diff --git a/apps/studio/prisma/seed.ts b/apps/studio/prisma/seed.ts index f963fd375e..b4c0882d3c 100644 --- a/apps/studio/prisma/seed.ts +++ b/apps/studio/prisma/seed.ts @@ -11,6 +11,19 @@ import { } from '~/server/modules/resource/resource.types' import { db } from '../src/server/modules/database' +const MOCK_PHONE_NUMBER = '123456789' + +const ISOMER_ADMINS = [ + 'alex', + 'jan', + 'kishore', + 'jiachin', + 'sehyun', + 'harish', + 'zhongjun', + 'hanpu', +] + const PAGE_BLOB = { version: '0.1.0', layout: 'homepage', @@ -188,6 +201,19 @@ async function main() { .insertInto('Resource') .values({ blobId, name: 'Home', siteId }) .executeTakeFirstOrThrow() + + await Promise.all( + ISOMER_ADMINS.map((name) => { + return db + .insertInto('User') + .values({ + name, + email: `${name}@open.gov.sg`, + phone: MOCK_PHONE_NUMBER, + }) + .executeTakeFirstOrThrow() + }), + ) } main()