I created sql views with two tables called Draft
CREATE VIEW `Draft` AS
SELECT company.address as address, company.id as id
FROM `company`, `admin`
WHERE `company`.`company_id` = `admin`.`id`;
Then added Draft model inside the schema.prisma like below
model Draft {
id Int @unique
address String
}
But when I run this query in playground I am getting below error with node js and with playground
const data = await ctx.prisma.draft.findMany({})
