Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export const seedReimbursementRequests = async (
patrick: any;
squidward: any;
sandy: any;
pearl: any;
larry: any;
},
vendors: {
tesla: Vendor;
Expand Down
44 changes: 43 additions & 1 deletion src/backend/src/prisma/seed-data/users.seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,45 @@ const sandy: Prisma.UserCreateInput = {
}
};

const pearl: Prisma.UserCreateInput = {
firstName: 'Pearl',
lastName: 'Whale',
googleAuthId: 'pearl',
email: 'pearlwhale@gmail.com',
userSettings: {
create: {
defaultTheme: Theme.LIGHT,
slackId: SLACK_ID ? SLACK_ID : 'pearl'
}
}
};

const larry: Prisma.UserCreateInput = {
firstName: 'Larry',
lastName: 'The Lobster',
googleAuthId: 'larry',
email: 'larryLobster@lobster.lob',
userSettings: {
create: {
defaultTheme: Theme.LIGHT,
slackId: SLACK_ID ? SLACK_ID : 'pearl'
}
}
};

const mrsPuff: Prisma.UserCreateInput = {
firstName: 'Mrs.',
lastName: 'Puff',
googleAuthId: 'puff',
email: 'puff@pufferfish.com',
userSettings: {
create: {
defaultTheme: Theme.LIGHT,
slackId: SLACK_ID ? SLACK_ID : 'puff'
}
}
};

export const dbSeedAllUsers = {
thomasEmrax,
joeShmoe,
Expand Down Expand Up @@ -1203,7 +1242,10 @@ export const dbSeedAllUsers = {
spongebob,
patrick,
squidward,
sandy
sandy,
pearl,
larry,
mrsPuff
};

export const createUser = async (user: Prisma.UserCreateInput, role: RoleEnum, organizationId: string) => {
Expand Down
Loading