Albin Groen
09/21/2021, 11:09 AMmodel Task {
id String @id @default(uuid())
completed Boolean @default(false)
title String
companyId String
}
In this case I would like to the companyId field to reference a company
model. The thing is though, companies doesn't live in the task database. Also, the
model doesn't live in this service either.
How would I go about solving this?Ryan
09/21/2021, 11:12 AMCompany model is in a totally separate database?Albin Groen
09/21/2021, 11:13 AMRyan
09/21/2021, 11:26 AMcompanyId but I don’t think it’s possible to perform a lookup to the company directly.Albin Groen
09/21/2021, 11:27 AM