added tons of features
This commit is contained in:
26
lib/db/prisma/schema/index.prisma
Normal file
26
lib/db/prisma/schema/index.prisma
Normal file
@@ -0,0 +1,26 @@
|
||||
// This is your Prisma schema file,
|
||||
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
previewFeatures = ["typedSql", "prismaSchemaFolder"]
|
||||
/// relationJoins is not available for MySQL < 8.0.14 and MariaDB.
|
||||
/// previewFeatures = ["relationJoins"]
|
||||
}
|
||||
|
||||
/// Always after the prisma-client-js generator
|
||||
generator json {
|
||||
provider = "prisma-json-types-generator"
|
||||
// clientOutput = "lib/db/prisma/generated"
|
||||
}
|
||||
|
||||
// generator zod {
|
||||
// provider = "zod-prisma-types"
|
||||
// useMultipleFiles = true
|
||||
// createRelationValuesTypes = true
|
||||
// }
|
||||
|
||||
datasource db {
|
||||
provider = "mysql"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
Reference in New Issue
Block a user