feat: 支持新版会员档案
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE `body_metrics`
|
||||
ADD COLUMN `height` DOUBLE NULL,
|
||||
ADD COLUMN `assessment` JSON NULL;
|
||||
@@ -384,11 +384,13 @@ model BodyMetric {
|
||||
id String @id @default(uuid())
|
||||
userId String @map("user_id")
|
||||
recordedAt DateTime @db.Date @map("recorded_at")
|
||||
height Float?
|
||||
weight Float?
|
||||
bodyFat Float? @map("body_fat")
|
||||
waist Float?
|
||||
hip Float?
|
||||
flexibility Float?
|
||||
assessment Json?
|
||||
remark String @default("") @db.VarChar(200)
|
||||
operatorId String @map("operator_id")
|
||||
createdAt DateTime @default(now()) @map("created_at")
|
||||
|
||||
Reference in New Issue
Block a user