mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Add post content
This commit is contained in:
@@ -41,6 +41,14 @@ export default class Post extends BaseModel {
|
||||
@column()
|
||||
public coverId: number
|
||||
|
||||
@belongsTo(() => Translation, {
|
||||
foreignKey: 'contentId'
|
||||
})
|
||||
public content: BelongsTo<typeof Translation>
|
||||
|
||||
@column()
|
||||
public contentId: number
|
||||
|
||||
@column()
|
||||
public readingTime: number
|
||||
|
||||
|
||||
Reference in New Issue
Block a user