fix(backend): Fouten in entity-definities gecorrigeerd.

This commit is contained in:
Gerald Schmittinger 2025-02-23 14:43:02 +01:00
parent d5101737ef
commit 4d3964c31f
6 changed files with 17 additions and 9 deletions

View file

@ -14,12 +14,12 @@ export class Assignment {
@Property({type: "string"})
title!: string;
@Property({type: "longtext"})
@Property({type: "text"})
description!: string;
@ManyToOne({entity: () => LearningPath})
task!: LearningPath;
@OneToMany({entity: () => Group})
@OneToMany({entity: () => Group, mappedBy: "assignment"})
groups!: Group[];
}