diff options
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 80a6c7832..806b6e046 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -102,6 +102,7 @@ const indexes: Sequelize.DefineIndexesOptions[] = [ | |||
102 | 102 | ||
103 | { fields: [ 'createdAt' ] }, | 103 | { fields: [ 'createdAt' ] }, |
104 | { fields: [ 'publishedAt' ] }, | 104 | { fields: [ 'publishedAt' ] }, |
105 | { fields: [ 'originallyPublishedAt' ] }, | ||
105 | { fields: [ 'duration' ] }, | 106 | { fields: [ 'duration' ] }, |
106 | { fields: [ 'views' ] }, | 107 | { fields: [ 'views' ] }, |
107 | { fields: [ 'channelId' ] }, | 108 | { fields: [ 'channelId' ] }, |
@@ -684,6 +685,9 @@ export class VideoModel extends Model<VideoModel> { | |||
684 | @Column | 685 | @Column |
685 | publishedAt: Date | 686 | publishedAt: Date |
686 | 687 | ||
688 | @Column | ||
689 | originallyPublishedAt: Date | ||
690 | |||
687 | @ForeignKey(() => VideoChannelModel) | 691 | @ForeignKey(() => VideoChannelModel) |
688 | @Column | 692 | @Column |
689 | channelId: number | 693 | channelId: number |