From 718ee7977b4e913cb67619f80f667b7c0a01e066 Mon Sep 17 00:00:00 2001 From: avicenan Date: Sat, 23 May 2026 22:15:08 +0900 Subject: [PATCH] fix(counter): using scope and type approach --- src/entity/counter.ts | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/entity/counter.ts b/src/entity/counter.ts index 6eddb31..80321e1 100644 --- a/src/entity/counter.ts +++ b/src/entity/counter.ts @@ -7,15 +7,28 @@ export class Counter { @Column({ nullable: false, - length: 128, - unique: true, type: "varchar", + length: 50 }) - key: string; + type: string; + + @Column({ + nullable: true, + type: "varchar", + length: 100 + }) + scope_id: string; + + @Column({ + nullable: true, + type: "date", + }) + counter_date: Date; @Column({ nullable: false, type: "bigint", + default: 0 }) value: string;