Replaced prisma with drizzle

This commit is contained in:
2024-11-09 15:38:28 -06:00
parent d1daab45cc
commit 041b18586c
12 changed files with 1502 additions and 348 deletions

View File

@@ -5,7 +5,8 @@ const config = {
"project": true
},
"plugins": [
"@typescript-eslint"
"@typescript-eslint",
"drizzle"
],
"extends": [
"next/core-web-vitals",
@@ -36,6 +37,24 @@ const config = {
"attributes": false
}
}
],
"drizzle/enforce-delete-with-where": [
"error",
{
"drizzleObjectName": [
"db",
"ctx.db"
]
}
],
"drizzle/enforce-update-with-where": [
"error",
{
"drizzleObjectName": [
"db",
"ctx.db"
]
}
]
}
}