I've tried using this. The readme says during setup, "Vercel will prompt you to create a new Postgres database". This is not the case. It goes straight into requesting environment variables, and requests the postgres URL.
I've added Prisma postgres to assist with this. I install Prisma postgres from the markeplace, and copy the env variables locally. I then need to create the databases, so I add a prisma/schema.prisma file, as below:
// schema.prisma
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("POSTGRES_URL") // uses connection pooling
}
enum Status {
ACTIVE
INACTIVE
ARCHIVED
}
model Product {
id Int @id @default(autoincrement())
imageUrl String @map("image_url")
name String
status Status
price Decimal @db.Decimal(10, 2)
stock Int
availableAt DateTime @map("available_at")
@@map("products")
}
It then complains that the project uses Drizzle https://orm.drizzle.team/docs/tutorials/drizzle-with-vercel which is not on the marketplace.
I think I am confused here, as the Readme mentions how you should be able to create a postgres DB from within Vercel, implying there was something that existed that wasn't needing to be installed from the DB.
I've tried using this. The readme says during setup, "Vercel will prompt you to create a new Postgres database". This is not the case. It goes straight into requesting environment variables, and requests the postgres URL.
I've added Prisma postgres to assist with this. I install Prisma postgres from the markeplace, and copy the env variables locally. I then need to create the databases, so I add a
prisma/schema.prismafile, as below:It then complains that the project uses Drizzle
https://orm.drizzle.team/docs/tutorials/drizzle-with-vercelwhich is not on the marketplace.I think I am confused here, as the Readme mentions how you should be able to create a postgres DB from within Vercel, implying there was something that existed that wasn't needing to be installed from the DB.