fix(backend): Added missing repository-properties to entity annotations
This commit is contained in:
parent
02be44fe53
commit
34af354a33
11 changed files with 22 additions and 11 deletions
|
@ -1,8 +1,9 @@
|
|||
import { Entity, Enum, ManyToOne } from '@mikro-orm/core';
|
||||
import { Student } from '../users/student.entity.js';
|
||||
import { Class } from './class.entity.js';
|
||||
import {ClassJoinRequestRepository} from "../../data/classes/class-join-request-repository";
|
||||
|
||||
@Entity()
|
||||
@Entity({repository: () => ClassJoinRequestRepository})
|
||||
export class ClassJoinRequest {
|
||||
@ManyToOne({ entity: () => Student, primary: true })
|
||||
requester!: Student;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue