diff options
Diffstat (limited to 'server/models/account/account.ts')
-rw-r--r-- | server/models/account/account.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/server/models/account/account.ts b/server/models/account/account.ts index 3ff59887d..2eed66fc2 100644 --- a/server/models/account/account.ts +++ b/server/models/account/account.ts | |||
@@ -46,7 +46,19 @@ import { UserModel } from './user' | |||
46 | ] | 46 | ] |
47 | }) | 47 | }) |
48 | @Table({ | 48 | @Table({ |
49 | tableName: 'account' | 49 | tableName: 'account', |
50 | indexes: [ | ||
51 | { | ||
52 | fields: [ 'actorId' ], | ||
53 | unique: true | ||
54 | }, | ||
55 | { | ||
56 | fields: [ 'applicationId' ] | ||
57 | }, | ||
58 | { | ||
59 | fields: [ 'userId' ] | ||
60 | } | ||
61 | ] | ||
50 | }) | 62 | }) |
51 | export class AccountModel extends Model<AccountModel> { | 63 | export class AccountModel extends Model<AccountModel> { |
52 | 64 | ||