fix(ops): 修复企微报告表零日期导致无法保存

早期 INSERT 未写 updated_at,MySQL 落成 0000-00-00,Prisma 读行失败。
This commit is contained in:
2026-09-02 22:19:40 +08:00
parent e5d7e468cc
commit d5994af431
3 changed files with 40 additions and 11 deletions
+1 -1
View File
@@ -561,7 +561,7 @@ model WecomReportPush {
lastSentPeriod String? @map("last_sent_period") @db.VarChar(16)
lastSentAt DateTime? @map("last_sent_at") @db.DateTime(3)
createdAt DateTime @default(now()) @map("created_at") @db.DateTime(3)
updatedAt DateTime @updatedAt @map("updated_at") @db.DateTime(3)
updatedAt DateTime @default(now()) @updatedAt @map("updated_at") @db.DateTime(3)
@@map("wecom_report_push")
}