James Lee
05/24/2020, 5:47 AMthis line is invalid
2. npx prisma generate also errors
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?
James Lee
05/24/2020, 5:50 AMRyan
05/25/2020, 9:33 AMmodel Brand {
id Int @default(autoincrement()) @id
createdAt DateTime @default(now()) @map("createdAt")
}
I think single quotes is causing the issue.