fix: @entity(...) decorator gefixt in backend/src/entities
This commit is contained in:
parent
7a8673f66e
commit
55387066f0
12 changed files with 24 additions and 12 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.js';
|
||||
|
||||
@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