]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/account/account-video-rate.ts
Add trending sort tests
[github/Chocobozzz/PeerTube.git] / server / models / account / account-video-rate.ts
index 9c19ec7488d46bc269fe281f101a24a94197c456..c99e32012b55e14854a94f856efe0ec35aaf14bd 100644 (file)
@@ -17,6 +17,15 @@ import { ActorModel } from '../activitypub/actor'
     {
       fields: [ 'videoId', 'accountId' ],
       unique: true
+    },
+    {
+      fields: [ 'videoId' ]
+    },
+    {
+      fields: [ 'accountId' ]
+    },
+    {
+      fields: [ 'videoId', 'type' ]
     }
   ]
 })