Skip to content

Commit d8674ec

Browse files
committed
seed: added seed data for default projects and voyages, and updated voyage teams
1 parent 7e68702 commit d8674ec

9 files changed

Lines changed: 317 additions & 0 deletions

File tree

prisma/seed/default-projects.ts

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,243 @@
1+
import { prisma } from "./prisma-client";
2+
3+
export const populateDefaultProjects = async () => {
4+
// Default Projects for Voyage 53
5+
await prisma.defaultVoyageProject.create({
6+
data: {
7+
repoUrl:
8+
"https://github.com/chingu-voyages/voyage-project-tier1-menu-scheduler",
9+
title: "voyage-project-tier1-menu-scheduler",
10+
overview:
11+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
12+
tier: {
13+
connect: {
14+
name: "Tier 1",
15+
},
16+
},
17+
voyage: {
18+
connect: {
19+
number: "53",
20+
},
21+
},
22+
},
23+
});
24+
await prisma.defaultVoyageProject.create({
25+
data: {
26+
repoUrl:
27+
"https://github.com/chingu-voyages/voyage-project-tier2-menu-scheduler",
28+
title: "voyage-project-tier2-menu-scheduler",
29+
overview:
30+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
31+
tier: {
32+
connect: {
33+
name: "Tier 2",
34+
},
35+
},
36+
voyage: {
37+
connect: {
38+
number: "53",
39+
},
40+
},
41+
},
42+
});
43+
44+
await prisma.defaultVoyageProject.create({
45+
data: {
46+
repoUrl:
47+
"https://github.com/chingu-voyages/voyage-project-tier3-menu-scheduler",
48+
title: "voyage-project-tier3-menu-scheduler",
49+
overview:
50+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
51+
tier: {
52+
connect: {
53+
name: "Tier 3",
54+
},
55+
},
56+
voyage: {
57+
connect: {
58+
number: "53",
59+
},
60+
},
61+
},
62+
});
63+
64+
// Default Projects for Voyage 54
65+
await prisma.defaultVoyageProject.create({
66+
data: {
67+
repoUrl:
68+
"https://github.com/chingu-voyages/voyage-project-tier1-menu-scheduler",
69+
title: "voyage-project-tier1-menu-scheduler",
70+
overview:
71+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
72+
tier: {
73+
connect: {
74+
name: "Tier 1",
75+
},
76+
},
77+
voyage: {
78+
connect: {
79+
number: "54",
80+
},
81+
},
82+
},
83+
});
84+
await prisma.defaultVoyageProject.create({
85+
data: {
86+
repoUrl:
87+
"https://github.com/chingu-voyages/voyage-project-tier2-menu-scheduler",
88+
title: "voyage-project-tier2-menu-scheduler",
89+
overview:
90+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
91+
tier: {
92+
connect: {
93+
name: "Tier 2",
94+
},
95+
},
96+
voyage: {
97+
connect: {
98+
number: "54",
99+
},
100+
},
101+
},
102+
});
103+
104+
await prisma.defaultVoyageProject.create({
105+
data: {
106+
repoUrl:
107+
"https://github.com/chingu-voyages/voyage-project-tier3-menu-scheduler",
108+
title: "voyage-project-tier3-menu-scheduler",
109+
overview:
110+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
111+
tier: {
112+
connect: {
113+
name: "Tier 3",
114+
},
115+
},
116+
voyage: {
117+
connect: {
118+
number: "54",
119+
},
120+
},
121+
},
122+
});
123+
124+
// Default Projects for Voyage 55
125+
await prisma.defaultVoyageProject.create({
126+
data: {
127+
repoUrl:
128+
"https://github.com/chingu-voyages/voyage-project-tier1-menu-scheduler",
129+
title: "voyage-project-tier1-menu-scheduler",
130+
overview:
131+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
132+
tier: {
133+
connect: {
134+
name: "Tier 1",
135+
},
136+
},
137+
voyage: {
138+
connect: {
139+
number: "55",
140+
},
141+
},
142+
},
143+
});
144+
await prisma.defaultVoyageProject.create({
145+
data: {
146+
repoUrl:
147+
"https://github.com/chingu-voyages/voyage-project-tier2-menu-scheduler",
148+
title: "voyage-project-tier2-menu-scheduler",
149+
overview:
150+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
151+
tier: {
152+
connect: {
153+
name: "Tier 2",
154+
},
155+
},
156+
voyage: {
157+
connect: {
158+
number: "55",
159+
},
160+
},
161+
},
162+
});
163+
164+
await prisma.defaultVoyageProject.create({
165+
data: {
166+
repoUrl:
167+
"https://github.com/chingu-voyages/voyage-project-tier3-menu-scheduler",
168+
title: "voyage-project-tier3-menu-scheduler",
169+
overview:
170+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
171+
tier: {
172+
connect: {
173+
name: "Tier 3",
174+
},
175+
},
176+
voyage: {
177+
connect: {
178+
number: "55",
179+
},
180+
},
181+
},
182+
});
183+
184+
// Default Projects for Voyage 56
185+
await prisma.defaultVoyageProject.create({
186+
data: {
187+
repoUrl:
188+
"https://github.com/chingu-voyages/voyage-project-tier1-menu-scheduler",
189+
title: "voyage-project-tier1-menu-scheduler",
190+
overview:
191+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
192+
tier: {
193+
connect: {
194+
name: "Tier 1",
195+
},
196+
},
197+
voyage: {
198+
connect: {
199+
number: "56",
200+
},
201+
},
202+
},
203+
});
204+
await prisma.defaultVoyageProject.create({
205+
data: {
206+
repoUrl:
207+
"https://github.com/chingu-voyages/voyage-project-tier2-menu-scheduler",
208+
title: "voyage-project-tier2-menu-scheduler",
209+
overview:
210+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
211+
tier: {
212+
connect: {
213+
name: "Tier 2",
214+
},
215+
},
216+
voyage: {
217+
connect: {
218+
number: "56",
219+
},
220+
},
221+
},
222+
});
223+
224+
await prisma.defaultVoyageProject.create({
225+
data: {
226+
repoUrl:
227+
"https://github.com/chingu-voyages/voyage-project-tier3-menu-scheduler",
228+
title: "voyage-project-tier3-menu-scheduler",
229+
overview:
230+
"This project focuses on developing a menu scheduling application that allows managers to create and share weekly menus for staff workers. The application ensures employees have clear visibility of the planned meals while addressing specific dietary restrictions and allergies.",
231+
tier: {
232+
connect: {
233+
name: "Tier 3",
234+
},
235+
},
236+
voyage: {
237+
connect: {
238+
number: "56",
239+
},
240+
},
241+
},
242+
});
243+
};

prisma/seed/seed.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { populateMeetings } from "./meetings";
99
import { populateSoloProjects } from "./solo-project";
1010
import { populateVoyageApplications } from "./voyage-app";
1111
import { populateChecklists } from "./checklist";
12+
import { populateDefaultProjects } from "./default-projects";
1213
import { prisma } from "./prisma-client";
1314
import { populateUserApplications } from "@Prisma/seed/user-app";
1415

@@ -40,6 +41,7 @@ export const seed = async () => {
4041
await populateUsers();
4142
await populateSprints();
4243
await populateVoyageTeams();
44+
await populateDefaultProjects();
4345
await populateTeamResourcesAndProjectIdeas();
4446
await populateFormsAndResponses();
4547
await populateMeetings();

prisma/seed/voyage-teams.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export const populateVoyageTeams = async () => {
1919
name: "Active",
2020
},
2121
},
22+
hasSelectedDefaultProject: false,
2223
repoUrl:
2324
"https://github.com/chingu-voyages/v46-tier3-chinguweather",
2425
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -122,6 +123,7 @@ export const populateVoyageTeams = async () => {
122123
name: "Active",
123124
},
124125
},
126+
hasSelectedDefaultProject: true,
125127
repoUrl:
126128
"https://github.com/chingu-voyages/soloproject-tier3-chinguweather",
127129
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -222,6 +224,7 @@ export const populateVoyageTeams = async () => {
222224
name: "Active",
223225
},
224226
},
227+
hasSelectedDefaultProject: false,
225228
repoUrl:
226229
"https://github.com/chingu-voyages/soloproject-tier3-chinguweather",
227230
tier: {
@@ -245,6 +248,7 @@ export const populateVoyageTeams = async () => {
245248
name: "Active",
246249
},
247250
},
251+
hasSelectedDefaultProject: true,
248252
repoUrl:
249253
"https://github.com/chingu-voyages/v46-tier3-chinguweather",
250254
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -347,6 +351,7 @@ export const populateVoyageTeams = async () => {
347351
name: "Active",
348352
},
349353
},
354+
hasSelectedDefaultProject: false,
350355
repoUrl:
351356
"https://github.com/chingu-voyages/soloproject-tier3-chinguweather",
352357
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -450,6 +455,7 @@ export const populateVoyageTeams = async () => {
450455
name: "Active",
451456
},
452457
},
458+
hasSelectedDefaultProject: true,
453459
repoUrl:
454460
"https://github.com/chingu-voyages/v46-tier3-chinguweather",
455461
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -552,6 +558,7 @@ export const populateVoyageTeams = async () => {
552558
name: "Active",
553559
},
554560
},
561+
hasSelectedDefaultProject: true,
555562
repoUrl:
556563
"https://github.com/chingu-voyages/soloproject-tier3-chinguweather",
557564
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -655,6 +662,7 @@ export const populateVoyageTeams = async () => {
655662
name: "Active",
656663
},
657664
},
665+
hasSelectedDefaultProject: true,
658666
repoUrl:
659667
"https://github.com/chingu-voyages/v46-tier3-chinguweather",
660668
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -757,6 +765,7 @@ export const populateVoyageTeams = async () => {
757765
name: "Active",
758766
},
759767
},
768+
hasSelectedDefaultProject: false,
760769
repoUrl:
761770
"https://github.com/chingu-voyages/soloproject-tier3-chinguweather",
762771
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -860,6 +869,7 @@ export const populateVoyageTeams = async () => {
860869
name: "Active",
861870
},
862871
},
872+
hasSelectedDefaultProject: true,
863873
repoUrl:
864874
"https://github.com/chingu-voyages/v46-tier3-chinguweather",
865875
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -962,6 +972,7 @@ export const populateVoyageTeams = async () => {
962972
name: "Active",
963973
},
964974
},
975+
hasSelectedDefaultProject: false,
965976
repoUrl:
966977
"https://github.com/chingu-voyages/soloproject-tier3-chinguweather",
967978
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -1067,6 +1078,7 @@ export const populateVoyageTeams = async () => {
10671078
name: "Active",
10681079
},
10691080
},
1081+
hasSelectedDefaultProject: true,
10701082
repoUrl:
10711083
"https://github.com/chingu-voyages/soloproject-tier3-chinguweather",
10721084
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -1134,6 +1146,7 @@ export const populateVoyageTeams = async () => {
11341146
name: "Active",
11351147
},
11361148
},
1149+
hasSelectedDefaultProject: true,
11371150
repoUrl:
11381151
"https://github.com/chingu-voyages/soloproject-tier3-chinguweather",
11391152
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -1201,6 +1214,7 @@ export const populateVoyageTeams = async () => {
12011214
name: "Active",
12021215
},
12031216
},
1217+
hasSelectedDefaultProject: true,
12041218
repoUrl:
12051219
"https://github.com/chingu-voyages/soloproject-tier3-chinguweather",
12061220
repoUrlBE: "https://github.com/chingu-voyages/Handbook",
@@ -1286,6 +1300,7 @@ export const populateVoyageTeams = async () => {
12861300
name: "Active",
12871301
},
12881302
},
1303+
hasSelectedDefaultProject: true,
12891304
repoUrl:
12901305
"https://github.com/chingu-voyages/soloproject-tier3-chinguweather",
12911306
repoUrlBE: "https://github.com/chingu-voyages/Handbook",

0 commit comments

Comments
 (0)