style(backend): Format

This commit is contained in:
Tibo De Peuter 2025-03-02 15:21:27 +01:00
parent c37d4d8e04
commit ddee299b4a
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
25 changed files with 265 additions and 150 deletions

View file

@ -12,7 +12,12 @@ import { Language } from '../content/language.js';
@Entity()
export class Assignment {
@ManyToOne({ entity: () => {return Class}, primary: true })
@ManyToOne({
entity: () => {
return Class;
},
primary: true,
})
within!: Class;
@PrimaryKey({ type: 'number' })
@ -27,9 +32,18 @@ export class Assignment {
@Property({ type: 'string' })
learningPathHruid!: string;
@Enum({ items: () => {return Language} })
@Enum({
items: () => {
return Language;
},
})
learningPathLanguage!: Language;
@OneToMany({ entity: () => {return Group}, mappedBy: 'assignment' })
@OneToMany({
entity: () => {
return Group;
},
mappedBy: 'assignment',
})
groups!: Group[];
}