mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-23 08:20:27 +01:00
Working and optimise
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user