mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
Add foreignKey
This commit is contained in:
@@ -13,7 +13,9 @@ export default class Announce extends BaseModel {
|
||||
@column()
|
||||
public hoverColor: string
|
||||
|
||||
@belongsTo(() => Translation)
|
||||
@belongsTo(() => Translation, {
|
||||
foreignKey: 'translationId'
|
||||
})
|
||||
public message: BelongsTo<typeof Translation>
|
||||
|
||||
@column()
|
||||
|
||||
Reference in New Issue
Block a user