mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-26 17:40:27 +01:00
Working
This commit is contained in:
@@ -16,12 +16,15 @@ export default class Announce extends BaseModel {
|
||||
@belongsTo(() => Translation)
|
||||
public message: BelongsTo<typeof Translation>
|
||||
|
||||
@column({ columnName: 'message_id' })
|
||||
public messageId: number
|
||||
@column()
|
||||
public translationId: number
|
||||
|
||||
@hasOne(() => File)
|
||||
public cover: HasOne<typeof File>
|
||||
|
||||
@column()
|
||||
public fileId: number
|
||||
|
||||
@column.dateTime({ autoCreate: true })
|
||||
public createdAt: DateTime
|
||||
|
||||
|
||||
Reference in New Issue
Block a user