diff options
author | Chocobozzz <me@florianbigard.com> | 2020-05-07 10:39:09 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-05-07 10:39:09 +0200 |
commit | 3cc665f48fd233d09f778d7e887488dde6f03ef6 (patch) | |
tree | ba8503723206ef17f4b8e4a2e40125472b28dbaf /shared | |
parent | ee8e602ef9761b4869e14d4d3ed24a2e18f22c65 (diff) | |
download | PeerTube-3cc665f48fd233d09f778d7e887488dde6f03ef6.tar.gz PeerTube-3cc665f48fd233d09f778d7e887488dde6f03ef6.tar.zst PeerTube-3cc665f48fd233d09f778d7e887488dde6f03ef6.zip |
Add last login date to users
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/server/server-stats.model.ts | 4 | ||||
-rw-r--r-- | shared/models/users/user.model.ts | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/shared/models/server/server-stats.model.ts b/shared/models/server/server-stats.model.ts index 11778e6ed..75d7dc554 100644 --- a/shared/models/server/server-stats.model.ts +++ b/shared/models/server/server-stats.model.ts | |||
@@ -2,6 +2,10 @@ import { VideoRedundancyStrategyWithManual } from '../redundancy' | |||
2 | 2 | ||
3 | export interface ServerStats { | 3 | export interface ServerStats { |
4 | totalUsers: number | 4 | totalUsers: number |
5 | totalDailyActiveUsers: number | ||
6 | totalWeeklyActiveUsers: number | ||
7 | totalMonthlyActiveUsers: number | ||
8 | |||
5 | totalLocalVideos: number | 9 | totalLocalVideos: number |
6 | totalLocalVideoViews: number | 10 | totalLocalVideoViews: number |
7 | totalLocalVideoComments: number | 11 | totalLocalVideoComments: number |
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index 42be04289..6c959ceea 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts | |||
@@ -52,6 +52,8 @@ export interface User { | |||
52 | createdAt: Date | 52 | createdAt: Date |
53 | 53 | ||
54 | pluginAuth: string | null | 54 | pluginAuth: string | null |
55 | |||
56 | lastLoginDate: Date | null | ||
55 | } | 57 | } |
56 | 58 | ||
57 | export interface MyUserSpecialPlaylist { | 59 | export interface MyUserSpecialPlaylist { |