Skip to content

Commit

Permalink
fix: Fix API key authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 29, 2024
1 parent 8c2c8c1 commit 2ca29af
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,13 @@ export const tagsOnBookmarksRelations = relations(
}),
}),
);

export const apiKeyRelations = relations(
apiKeys,
({ one }) => ({
user: one(users, {
fields: [apiKeys.userId],
references: [users.id],
}),
}),
);

0 comments on commit 2ca29af

Please sign in to comment.