Skip to content

Commit

Permalink
✨Schema Email 추가
Browse files Browse the repository at this point in the history
providerId만으로 구분이 힘들어 email도 저장합니다.
  • Loading branch information
ldhbenecia committed Nov 22, 2023
1 parent 6d874e7 commit 18e301f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ datasource db {
model Member {
id BigInt @id @default(autoincrement()) @db.BigInt
providerId String @unique @db.VarChar(191) @map("provider_id")
createdAt DateTime @default(now()) @map("created_at")
email String @unique @db.VarChar(191)
socialType String @db.VarChar(191) @map("social_type")
createdAt DateTime @default(now()) @map("created_at")
users GroupToUser[]
members Participant[]
mogacos Mogaco[]
Expand Down
1 change: 1 addition & 0 deletions app/backend/src/auth/auth.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class AuthRepository {
data: {
providerId: userDto.providerId,
socialType: userDto.socialType,
email: userDto.email,
},
});
}
Expand Down

0 comments on commit 18e301f

Please sign in to comment.