mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-18 22:11:34 +01:00
change message to translation
This commit is contained in:
@@ -13,13 +13,11 @@ export default class Announce extends BaseModel {
|
||||
@column()
|
||||
public hoverColor: string
|
||||
|
||||
@belongsTo(() => Translation, {
|
||||
foreignKey: 'translationId'
|
||||
})
|
||||
public message: BelongsTo<typeof Translation>
|
||||
@belongsTo(() => Translation)
|
||||
public translation: BelongsTo<typeof Translation>
|
||||
|
||||
@column()
|
||||
public messageId: number
|
||||
public translationId: number
|
||||
|
||||
@hasOne(() => File)
|
||||
public cover: HasOne<typeof File>
|
||||
|
||||
Reference in New Issue
Block a user