feat: add shared collection page

This commit is contained in:
Sonny
2024-06-02 18:35:10 +02:00
committed by Sonny
parent dc54a1197d
commit 8a4f895853
15 changed files with 93 additions and 18 deletions

View File

@@ -21,7 +21,7 @@ export default class Collection extends AppBaseModel {
@column()
declare authorId: number;
@belongsTo(() => User, { foreignKey: 'author_id' })
@belongsTo(() => User, { foreignKey: 'authorId' })
declare author: BelongsTo<typeof User>;
@hasMany(() => Link)