X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fuser%2Fuser-video-history.ts;h=e3dc4a062d77f0d8640b989229eea8ac6e8bd10f;hb=16c016e8b1d5ca46343d3363f9a49e24c5d7c944;hp=6be1d65ea19e76d2e29d0f0b86960f102a02dea3;hpb=9a320a06b663a2e02c3156a07135f75f9e987b11;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/user/user-video-history.ts b/server/models/user/user-video-history.ts index 6be1d65ea..e3dc4a062 100644 --- a/server/models/user/user-video-history.ts +++ b/server/models/user/user-video-history.ts @@ -1,8 +1,9 @@ +import { DestroyOptions, Op, Transaction } from 'sequelize' import { AllowNull, BelongsTo, Column, CreatedAt, ForeignKey, IsInt, Model, Table, UpdatedAt } from 'sequelize-typescript' +import { MUserAccountId, MUserId } from '@server/types/models' +import { AttributesOnly } from '@shared/core-utils' import { VideoModel } from '../video/video' import { UserModel } from './user' -import { DestroyOptions, Op, Transaction } from 'sequelize' -import { MUserAccountId, MUserId } from '@server/types/models' @Table({ tableName: 'userVideoHistory', @@ -19,7 +20,7 @@ import { MUserAccountId, MUserId } from '@server/types/models' } ] }) -export class UserVideoHistoryModel extends Model { +export class UserVideoHistoryModel extends Model>> { @CreatedAt createdAt: Date