fix(mining-admin): add @map for targetType column in Notification schema
Missing @map("target_type") caused Prisma to look for camelCase column
name instead of the snake_case column created in migration SQL.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e68b5aa3d9
commit
5e05e336f7
|
|
@ -957,7 +957,7 @@ model Notification {
|
||||||
content String @db.Text
|
content String @db.Text
|
||||||
type NotificationType @default(SYSTEM)
|
type NotificationType @default(SYSTEM)
|
||||||
priority NotificationPriority @default(NORMAL)
|
priority NotificationPriority @default(NORMAL)
|
||||||
targetType TargetType @default(ALL)
|
targetType TargetType @default(ALL) @map("target_type")
|
||||||
imageUrl String? @map("image_url")
|
imageUrl String? @map("image_url")
|
||||||
linkUrl String? @map("link_url")
|
linkUrl String? @map("link_url")
|
||||||
isEnabled Boolean @default(true) @map("is_enabled")
|
isEnabled Boolean @default(true) @map("is_enabled")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue