fix(counter): using scope and type approach
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user