Skip to content

Commit 4e54485

Browse files
authored
Merge branch 'feature/gantt-chart-improvements' into #3845-mouse-placement-bug
2 parents 1e4a7cc + ba224b3 commit 4e54485

4 files changed

Lines changed: 1758 additions & 393 deletions

File tree

src/backend/src/prisma/seed-data/reimbursement-requests.seed.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export const seedReimbursementRequests = async (
4747
karen: any;
4848
spongebob: any;
4949
patrick: any;
50+
squidward: any;
51+
sandy: any;
52+
pearl: any;
53+
larry: any;
5054
},
5155
vendors: {
5256
tesla: Vendor;

src/backend/src/prisma/seed-data/teams.seed.ts

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,37 @@ const meanGirls = (headId: string, organizationId: string): Prisma.TeamCreateArg
115115
};
116116
};
117117

118-
export const dbSeedAllTeams = { ravens, orioles, justiceLeague, huskies, avatarBenders, plLegends, financeTeam, meanGirls };
118+
const krustyKrabers = (headId: string, organizationId: string): Prisma.TeamCreateArgs => {
119+
return {
120+
data: {
121+
teamName: 'Krusty Krab Crew',
122+
slackId: 'C06HR7WTTKM',
123+
headId,
124+
organizationId
125+
}
126+
};
127+
};
128+
129+
const penguinsOfMadagascar = (headId: string, organizationId: string): Prisma.TeamCreateArgs => {
130+
return {
131+
data: {
132+
teamName: 'Penguins of Madagascar',
133+
slackId: 'C06HR7WTTKM',
134+
headId,
135+
organizationId
136+
}
137+
};
138+
};
139+
140+
export const dbSeedAllTeams = {
141+
ravens,
142+
orioles,
143+
justiceLeague,
144+
huskies,
145+
avatarBenders,
146+
plLegends,
147+
financeTeam,
148+
meanGirls,
149+
krustyKrabers,
150+
penguinsOfMadagascar
151+
};

src/backend/src/prisma/seed-data/users.seed.ts

Lines changed: 141 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,68 @@ const kingJulian: Prisma.UserCreateInput = {
842842
email: 'iliketomoveit@jungle.net'
843843
};
844844

845+
const skipper: Prisma.UserCreateInput = {
846+
firstName: 'Skipper',
847+
lastName: 'Penguin',
848+
googleAuthId: 'skipperpenguin',
849+
email: 'allrightboys@penguin.net',
850+
userSettings: {
851+
create: {
852+
defaultTheme: Theme.DARK,
853+
slackId: SLACK_ID ? SLACK_ID : 'Penguin Boss'
854+
}
855+
}
856+
};
857+
858+
const kowalski: Prisma.UserCreateInput = {
859+
firstName: 'kowalski',
860+
lastName: 'Penguin',
861+
googleAuthId: 'kowalskipenguin',
862+
email: 'kowalskipenguin@penguin.net'
863+
};
864+
865+
const privat: Prisma.UserCreateInput = {
866+
firstName: 'Private',
867+
lastName: 'Penguin',
868+
googleAuthId: 'privatepenguin',
869+
email: 'privatepenguin@penguin.net'
870+
};
871+
872+
const rico: Prisma.UserCreateInput = {
873+
firstName: 'Rico',
874+
lastName: 'Penguin',
875+
googleAuthId: 'ricopenguin',
876+
email: 'ricopenguin@penguin.net'
877+
};
878+
879+
const alex: Prisma.UserCreateInput = {
880+
firstName: 'Alex',
881+
lastName: 'The Lion',
882+
googleAuthId: 'alexlion',
883+
email: 'alexthe@lion.org'
884+
};
885+
886+
const marty: Prisma.UserCreateInput = {
887+
firstName: 'Marty',
888+
lastName: 'The Zebra',
889+
googleAuthId: 'martyzebra',
890+
email: 'marty@zebra.com'
891+
};
892+
893+
const gloria: Prisma.UserCreateInput = {
894+
firstName: 'Gloria',
895+
lastName: 'The Hippo',
896+
googleAuthId: 'gloriahippo',
897+
email: 'gloria@hippo.hippo'
898+
};
899+
900+
const melman: Prisma.UserCreateInput = {
901+
firstName: 'Melman',
902+
lastName: 'The Giraffe',
903+
googleAuthId: 'melmangiraffe',
904+
email: 'melman@giraffe.com'
905+
};
906+
845907
const regina: Prisma.UserCreateInput = {
846908
firstName: 'Regina',
847909
lastName: 'George',
@@ -990,6 +1052,71 @@ const patrick: Prisma.UserCreateInput = {
9901052
}
9911053
};
9921054

1055+
const squidward: Prisma.UserCreateInput = {
1056+
firstName: 'Squidward',
1057+
lastName: 'Tenticles',
1058+
googleAuthId: 'squidward',
1059+
email: 'squidwardtenticles@yahoo.com',
1060+
userSettings: {
1061+
create: {
1062+
defaultTheme: Theme.DARK,
1063+
slackId: SLACK_ID ? SLACK_ID : 'squidward'
1064+
}
1065+
}
1066+
};
1067+
1068+
const sandy: Prisma.UserCreateInput = {
1069+
firstName: 'Sandy',
1070+
lastName: 'Star',
1071+
googleAuthId: 'sandy',
1072+
email: 'sandystar@gmail.com',
1073+
userSettings: {
1074+
create: {
1075+
defaultTheme: Theme.LIGHT,
1076+
slackId: SLACK_ID ? SLACK_ID : 'sandy'
1077+
}
1078+
}
1079+
};
1080+
1081+
const pearl: Prisma.UserCreateInput = {
1082+
firstName: 'Pearl',
1083+
lastName: 'Whale',
1084+
googleAuthId: 'pearl',
1085+
email: 'pearlwhale@gmail.com',
1086+
userSettings: {
1087+
create: {
1088+
defaultTheme: Theme.LIGHT,
1089+
slackId: SLACK_ID ? SLACK_ID : 'pearl'
1090+
}
1091+
}
1092+
};
1093+
1094+
const larry: Prisma.UserCreateInput = {
1095+
firstName: 'Larry',
1096+
lastName: 'The Lobster',
1097+
googleAuthId: 'larry',
1098+
email: 'larryLobster@lobster.lob',
1099+
userSettings: {
1100+
create: {
1101+
defaultTheme: Theme.LIGHT,
1102+
slackId: SLACK_ID ? SLACK_ID : 'pearl'
1103+
}
1104+
}
1105+
};
1106+
1107+
const mrsPuff: Prisma.UserCreateInput = {
1108+
firstName: 'Mrs.',
1109+
lastName: 'Puff',
1110+
googleAuthId: 'puff',
1111+
email: 'puff@pufferfish.com',
1112+
userSettings: {
1113+
create: {
1114+
defaultTheme: Theme.LIGHT,
1115+
slackId: SLACK_ID ? SLACK_ID : 'puff'
1116+
}
1117+
}
1118+
};
1119+
9931120
export const dbSeedAllUsers = {
9941121
thomasEmrax,
9951122
joeShmoe,
@@ -1090,6 +1217,14 @@ export const dbSeedAllUsers = {
10901217
francis,
10911218
victorPerkins,
10921219
kingJulian,
1220+
skipper,
1221+
kowalski,
1222+
privat,
1223+
rico,
1224+
alex,
1225+
marty,
1226+
gloria,
1227+
melman,
10931228
regina,
10941229
gretchen,
10951230
karen,
@@ -1105,7 +1240,12 @@ export const dbSeedAllUsers = {
11051240
carr,
11061241
trang,
11071242
spongebob,
1108-
patrick
1243+
patrick,
1244+
squidward,
1245+
sandy,
1246+
pearl,
1247+
larry,
1248+
mrsPuff
11091249
};
11101250

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

0 commit comments

Comments
 (0)