mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Improve views/viewers documentation
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user