Skip to content

Commit

Permalink
Update schema/factory
Browse files Browse the repository at this point in the history
Add password to schema
Update user factory with  password
  • Loading branch information
ProgramStuff committed Jan 29, 2025
1 parent f674813 commit 227a2ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/factories/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const userFactory = (
id: id,
email: faker.internet.email(),
username: faker.internet.username(),
password: faker.internet.password(),
name: faker.person.fullName(),
bio: faker.lorem.paragraph(),
image: faker.image.avatar(),
Expand All @@ -24,6 +25,7 @@ export const userCreateInputFactory = (
return {
email: faker.internet.email(),
username: faker.internet.username(),
password: faker.internet.password(),
name: faker.person.fullName(),
bio: faker.lorem.paragraph(),
image: faker.image.avatar(),
Expand Down
1 change: 1 addition & 0 deletions backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ model User {
id Int @id @default(autoincrement())
email String @unique
username String? @unique
password String?
name String?
image String?
bio String?
Expand Down

0 comments on commit 227a2ec

Please sign in to comment.