mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
Update translation into message in Announce Model
This commit is contained in:
@@ -14,16 +14,16 @@ export default class Announce extends BaseModel {
|
||||
public hoverColor: string
|
||||
|
||||
@belongsTo(() => Translation)
|
||||
public translation: BelongsTo<typeof Translation>
|
||||
public message: BelongsTo<typeof Translation>
|
||||
|
||||
@column()
|
||||
public translationId: number
|
||||
public messageId: number
|
||||
|
||||
@belongsTo(() => File)
|
||||
public file: BelongsTo<typeof File>
|
||||
public cover: BelongsTo<typeof File>
|
||||
|
||||
@column()
|
||||
public fileId: number
|
||||
public coverId: number
|
||||
|
||||
@column.dateTime({ autoCreate: true })
|
||||
public createdAt: DateTime
|
||||
|
||||
Reference in New Issue
Block a user