the following schema is creating user id as foreig...
# orm-help
n
the following schema is creating user id as foreign key in
Address
table instead of creating address id as foreign key in
User
table
Copy code
model User {
  id       String  @default(cuid()) @id
  email    String  @unique
  password String
  name     String
  gender   Gender  @default(value: null)
  address  Address?
}

model Address {
  id           String   @default(cuid()) @id
  addressLine1 String
  addressLine2 String?
  createdAt    DateTime @default(now())
  updatedAt    DateTime @updatedAt
}
not sure what is wrong here. Can someone please help? TIA