First time trying out prisma and trying out the @m...
# orm-help
j
First time trying out prisma and trying out the @map syntax from the setup guide. However, 1. vscode shows error
this line is invalid
2. npx prisma generate also errors
Copy code
model brand {
11 |   created_at       DateTime           @default(now()) @map('createdAt')
   | 
error: Error validating: This line is invalid. It does not start with any known Prisma schema keyword.

anyone know if I need to do something special for @map to be accepted?
I am on version 2.0.0.-beta.5 of @prisma/client and cli
r
Hey @James Lee 👋 Could you try it in the following manner:
Copy code
model Brand {
  id        Int      @default(autoincrement()) @id
  createdAt DateTime @default(now()) @map("createdAt")
}
I think single quotes is causing the issue.