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