Jack
03/19/2019, 9:28 PM@pgRelation
directive, as described in the docs (https://www.prisma.io/docs/datamodel-and-migrations/introspection-POSTGRES-soi1/#inline-relation-column), in order to deploy prisma for my existing database. I don't want to migrate this existing database, since I have a codebase that relies on the structure as-is.
My datamodel looks like this:
type AdminUser @pgTable(name: "admin_users") {
id: ID! @unique
}
type Customer @pgTable(name: "customers") {
id: ID! @unique
adminUser: AdminUser! @pgRelation(column: "admin_user_id")
}
But when I try and deploy I see this error:
Global
✖ Could not find the model table customers in the database
Anyone have any ideas why this might be? That customers table does exist.Jack
03/19/2019, 10:13 PMschema: public
to my docker-compose.yml