diff options
author | Chocobozzz <me@florianbigard.com> | 2022-04-05 15:15:09 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-04-15 09:49:35 +0200 |
commit | dfbcefc20dc64f0814b1f2e8e782a4ea1bd24db2 (patch) | |
tree | 887521117856c06e6c814a0eb79d67f85ffe8eff /server/models/view/video-view.ts | |
parent | d74bb0647c79748860ad39c4b7b1be59504b47b7 (diff) | |
download | PeerTube-dfbcefc20dc64f0814b1f2e8e782a4ea1bd24db2.tar.gz PeerTube-dfbcefc20dc64f0814b1f2e8e782a4ea1bd24db2.tar.zst PeerTube-dfbcefc20dc64f0814b1f2e8e782a4ea1bd24db2.zip |
Improve views/viewers documentation
Diffstat (limited to 'server/models/view/video-view.ts')
-rw-r--r-- | server/models/view/video-view.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/models/view/video-view.ts b/server/models/view/video-view.ts index df462e631..1504a364e 100644 --- a/server/models/view/video-view.ts +++ b/server/models/view/video-view.ts | |||
@@ -3,6 +3,13 @@ import { AllowNull, BelongsTo, Column, CreatedAt, DataType, ForeignKey, Model, T | |||
3 | import { AttributesOnly } from '@shared/typescript-utils' | 3 | import { AttributesOnly } from '@shared/typescript-utils' |
4 | import { VideoModel } from '../video/video' | 4 | import { VideoModel } from '../video/video' |
5 | 5 | ||
6 | /** | ||
7 | * | ||
8 | * Aggregate views of all videos federated with our instance | ||
9 | * Mainly used by the trending/hot algorithms | ||
10 | * | ||
11 | */ | ||
12 | |||
6 | @Table({ | 13 | @Table({ |
7 | tableName: 'videoView', | 14 | tableName: 'videoView', |
8 | updatedAt: false, | 15 | updatedAt: false, |