Hi, I have a use case for Prisma that I'm not sure...
# orm-help
a
Hi, I have a use case for Prisma that I'm not sure you support. I have a model like this
Copy code
model 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?
r
@Albin Groen 👋 If I understand correctly, the
Company
model is in a totally separate database?
a
Correct
r
You can reference the
companyId
but I don’t think it’s possible to perform a lookup to the company directly.
a
Hmm alright