Hi community, I am using node-red v2.2.2 and node.js v14.19.3.
I making a small project, and I'm trying to acceed my data stored on an Heroku postgres app.
My environnement of work is a web site using Next.js and prisma for create and managed the db and heroku for hosting the db.
I've installed node-red-contrib-postgresql and have configure the db connection as my url : user:password@host:port/db.
The issue is that when i'm simply trying to make the request SELECT * FROM user;
it return me the name of the user used for the db connection and not the data present in my table named User.
Here is my prisma schema
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
}
model User {
id String @id @default(uuid())
email String @unique
name String?
password String?
sensors Sensor[]
}
model Sensor {
id String @id @default(uuid())
owner User @relation(fields: [ownerId], references: [id])
ownerId String // relation scalar field (used in the `@relation` attribute above)
dev_id String
nitrate Int
phos Int
potass Int
co2 Int
temp Int
humidity Int
}