Merge branch 'dev' into chore/logging

This commit is contained in:
Tibo De Peuter 2025-03-02 15:04:04 +01:00
commit f82668148c
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
122 changed files with 6026 additions and 14446 deletions

View file

@ -0,0 +1,15 @@
import { Entity, ManyToMany, ManyToOne, PrimaryKey } from '@mikro-orm/core';
import { Assignment } from './assignment.entity.js';
import { Student } from '../users/student.entity.js';
@Entity()
export class Group {
@ManyToOne({ entity: () => {return Assignment}, primary: true })
assignment!: Assignment;
@PrimaryKey({ type: 'integer' })
groupNumber!: number;
@ManyToMany({ entity: () => {return Student} })
members!: Student[];
}