mirror of
https://github.com/diced/zipline.git
synced 2025-04-11 23:31:17 -05:00
add clicks statistic to shortens
This commit is contained in:
parent
b84907e281
commit
e29acadd41
1 changed files with 4 additions and 0 deletions
|
@ -20,12 +20,16 @@ export class Shorten {
|
|||
@Column("bigint", { default: 0 })
|
||||
views: number
|
||||
|
||||
@Column("bigint", { default: 0 })
|
||||
clicks: number;
|
||||
|
||||
set(options: { key: string, origin: string, url: string, user: number }) {
|
||||
this.key = options.key;
|
||||
this.origin = options.origin;
|
||||
this.url = options.url;
|
||||
this.user = options.user;
|
||||
this.views = 0;
|
||||
this.clicks = 0;
|
||||
return this;
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue