Skip to content

Commit

Permalink
fix: Add sessions relation in drizzle-schema-auth (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImPrankster authored Nov 18, 2023
1 parent 397c987 commit cef18c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/template/extras/src/server/db/drizzle-schema-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const users = mysqlTable("user", {

export const usersRelations = relations(users, ({ many }) => ({
accounts: many(accounts),
sessions: many(sessions),
}));

export const accounts = mysqlTable(
Expand Down

0 comments on commit cef18c6

Please sign in to comment.