If I had a 1:1 model relationship working in the a...
# orm-help
j
If I had a 1:1 model relationship working in the alpha client, is there a way to migrate to the beta client (where it’s necessary to use
@relation(fields: [brand_id], references: [id])
) without data loss?
Copy code
model Product {
  id            String  @id
  brand         Brand?  @relation(fields: [brand_id], references: [id])
  brand_id      Int? <---- CAN I ADD THIS WITHOUT DATA LOSS?
}

model Brand {
  id          String  @id
}