From 366debf13a9dcbdb98d2544aff8e1f2906096ec0 Mon Sep 17 00:00:00 2001 From: richarjiang Date: Thu, 14 Aug 2025 19:32:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=AD=E7=BB=83=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E6=A8=A1=E5=9E=8B=E4=B8=AD=E7=9A=84id=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=B1=BB=E5=9E=8B=E4=B8=BAUUID=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=BB=98=E8=AE=A4=E5=80=BC=E4=B8=BAUUIDV4?= =?UTF-8?q?=EF=BC=8C=E4=BB=A5=E5=A2=9E=E5=BC=BA=E5=94=AF=E4=B8=80=E6=80=A7?= =?UTF-8?q?=E5=92=8C=E5=AE=89=E5=85=A8=E6=80=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/training-plans/models/training-plan.model.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/training-plans/models/training-plan.model.ts b/src/training-plans/models/training-plan.model.ts index f20bc97..fc16907 100644 --- a/src/training-plans/models/training-plan.model.ts +++ b/src/training-plans/models/training-plan.model.ts @@ -9,7 +9,10 @@ export type PlanGoal = 'postpartum_recovery' | 'fat_loss' | 'posture_correction' }) export class TrainingPlan extends Model { @PrimaryKey - @Column({ type: DataType.STRING }) + @Column({ + type: DataType.UUID, + defaultValue: DataType.UUIDV4, + }) declare id: string; @Column({ type: DataType.STRING, allowNull: false })