fix(backend): Formatting + .env.development.example
npm run format uitgevoerd, .env.development.example toegevoegd.
This commit is contained in:
parent
4e883a1a18
commit
48c8ce7c57
36 changed files with 499 additions and 331 deletions
|
@ -1,15 +1,15 @@
|
|||
import {Entity, ManyToMany, ManyToOne, PrimaryKey} from "@mikro-orm/core";
|
||||
import {Assignment} from "./assignment.entity";
|
||||
import {Student} from "../users/student.entity";
|
||||
import { Entity, ManyToMany, ManyToOne, PrimaryKey } from '@mikro-orm/core';
|
||||
import { Assignment } from './assignment.entity';
|
||||
import { Student } from '../users/student.entity';
|
||||
|
||||
@Entity()
|
||||
export class Group {
|
||||
@ManyToOne({entity: () => Assignment, primary: true})
|
||||
@ManyToOne({ entity: () => Assignment, primary: true })
|
||||
assignment!: Assignment;
|
||||
|
||||
@PrimaryKey({type: "integer"})
|
||||
@PrimaryKey({ type: 'integer' })
|
||||
groupNumber!: number;
|
||||
|
||||
@ManyToMany({entity: () => Student})
|
||||
@ManyToMany({ entity: () => Student })
|
||||
members!: Student[];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue