Add foreignKey

This commit is contained in:
2021-08-12 11:23:36 +02:00
parent 2886592487
commit a9229f4ff3

View File

@@ -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()