diff --git a/server/src/migrations/populate.ts b/server/src/migrations/populate.ts index af3f7bb..68908aa 100644 --- a/server/src/migrations/populate.ts +++ b/server/src/migrations/populate.ts @@ -48,9 +48,16 @@ RETURNING id, user_id; const weekly_timeslots = await client.query(` INSERT INTO weekly_timeslots (trainer_id, day_of_week, start_time, end_time) VALUES +($1, 1, '8:00:00', '9:00:00'), +($1, 1, '9:00:00', '10:00:00'), +($1, 1, '10:00:00', '11:00:00'), ($1, 1, '11:00:00', '12:00:00'), +($1, 1, '12:00:00', '13:00:00'), +($1, 1, '13:00:00', '14:00:00'), +($1, 1, '14:00:00', '15:00:00'), ($1, 2, '10:00:00', '13:00:00'), ($1, 3, '10:00:00', '15:00:00'), +($1, 3, '16:00:00', '17:00:00'), ($1, 4, '10:00:00', '11:30:00'), ($2, 1, '10:00:00', '11:00:00'), ($2, 1, '11:00:00', '12:00:00'), @@ -93,6 +100,7 @@ RETURNING id; ]); client.end(); + process.exit(0); } main(); \ No newline at end of file