fix(counter): using scope and type approach

This commit is contained in:
avicenan
2026-05-23 22:15:08 +09:00
parent 0085a1c25b
commit 718ee7977b

View File

@ -7,15 +7,28 @@ export class Counter {
@Column({ @Column({
nullable: false, nullable: false,
length: 128,
unique: true,
type: "varchar", 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({ @Column({
nullable: false, nullable: false,
type: "bigint", type: "bigint",
default: 0
}) })
value: string; value: string;