feat(backend): Entities toegevoegd
Entites Class, Class Join Request, Class Invitation, Assignment, Group en entities om de Dwengo-leerinhoud te modelleren, toegevoegd.
This commit is contained in:
parent
62a278a6e0
commit
d5101737ef
14 changed files with 289 additions and 7 deletions
16
backend/src/entities/content/attachment.entity.ts
Normal file
16
backend/src/entities/content/attachment.entity.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import {ManyToOne, PrimaryKey, Property} from "@mikro-orm/core";
|
||||
import {LearningObject} from "./learning-object.entity";
|
||||
|
||||
export class Attachment {
|
||||
@ManyToOne({entity: () => LearningObject, primary: true})
|
||||
learningObject!: LearningObject;
|
||||
|
||||
@PrimaryKey({type: "integer"})
|
||||
no!: number;
|
||||
|
||||
@Property({type: "string"})
|
||||
mimeType!: string;
|
||||
|
||||
@Property({type: "blob"})
|
||||
content!: Buffer;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue