diff options
Diffstat (limited to 'server/models/account/account-video-rate.ts')
-rw-r--r-- | server/models/account/account-video-rate.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/models/account/account-video-rate.ts b/server/models/account/account-video-rate.ts index 9c19ec748..c99e32012 100644 --- a/server/models/account/account-video-rate.ts +++ b/server/models/account/account-video-rate.ts | |||
@@ -17,6 +17,15 @@ import { ActorModel } from '../activitypub/actor' | |||
17 | { | 17 | { |
18 | fields: [ 'videoId', 'accountId' ], | 18 | fields: [ 'videoId', 'accountId' ], |
19 | unique: true | 19 | unique: true |
20 | }, | ||
21 | { | ||
22 | fields: [ 'videoId' ] | ||
23 | }, | ||
24 | { | ||
25 | fields: [ 'accountId' ] | ||
26 | }, | ||
27 | { | ||
28 | fields: [ 'videoId', 'type' ] | ||
20 | } | 29 | } |
21 | ] | 30 | ] |
22 | }) | 31 | }) |