Working and optimise

This commit is contained in:
2021-08-16 22:32:30 +02:00
parent 09e5b2f76f
commit 7a5a246177
3 changed files with 7 additions and 11 deletions

View File

@@ -21,7 +21,9 @@ export default class Announce extends BaseModel {
@column()
public messageId: number
@belongsTo(() => File)
@belongsTo(() => File, {
foreignKey: 'coverId'
})
public cover: BelongsTo<typeof File>
@column()