From b42530be30fe45f0020750119f97f68da82659fe Mon Sep 17 00:00:00 2001 From: fro1991 Date: Thu, 8 May 2025 01:40:14 +0700 Subject: [PATCH] update brilink --- src/entity/brizzi_history.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/entity/brizzi_history.ts b/src/entity/brizzi_history.ts index 6350b40..770795b 100644 --- a/src/entity/brizzi_history.ts +++ b/src/entity/brizzi_history.ts @@ -9,6 +9,13 @@ export class BrizziHistory { @PrimaryGeneratedColumn('uuid') id: string; + @Column({ + nullable: false, + length: 64, + unique: true + }) + code: string + @ManyToOne(() => BrizziCard, { onDelete: 'RESTRICT' }) @JoinTable() card: BrizziCard