Improve views/viewers documentation

This commit is contained in:
Chocobozzz
2022-04-05 15:15:09 +02:00
committed by Chocobozzz
parent d74bb0647c
commit dfbcefc20d
6 changed files with 39 additions and 6 deletions

View File

@@ -8,6 +8,13 @@ import { AttributesOnly } from '@shared/typescript-utils'
import { VideoModel } from '../video/video'
import { LocalVideoViewerWatchSectionModel } from './local-video-viewer-watch-section'
/**
*
* Aggregate viewers of local videos only to display statistics to video owners
* A viewer is a user that watched one or multiple sections of a specific video inside a time window
*
*/
@Table({
tableName: 'localVideoViewer',
updatedAt: false,

View File

@@ -3,6 +3,13 @@ import { AllowNull, BelongsTo, Column, CreatedAt, DataType, ForeignKey, Model, T
import { AttributesOnly } from '@shared/typescript-utils'
import { VideoModel } from '../video/video'
/**
*
* Aggregate views of all videos federated with our instance
* Mainly used by the trending/hot algorithms
*
*/
@Table({
tableName: 'videoView',
updatedAt: false,