Skip to content

Commit

Permalink
fix: πŸ› add relation info for meeting and availabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Apr 15, 2024
1 parent 3b05c80 commit ad7deca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,16 @@ export const meetingsRelations = relations(meetings, ({ one, many }) => ({
fields: [meetings.host_id],
references: [members.id],
}),
availabilities: many(availabilities),
membersInMeeting: many(membersInMeeting),
meetingDates: many(meetingDates),
}));

export const meetingDateRelations = relations(meetingDates, ({ one }) => ({
export const meetingDatesRelations = relations(meetingDates, ({ one, many }) => ({
meetings: one(meetings, {
fields: [meetingDates.meeting_id],
references: [meetings.id],
}),
availabilities: many(availabilities),
}));

export const sessionsRelations = relations(sessions, ({ one }) => ({
Expand Down

0 comments on commit ad7deca

Please sign in to comment.