feat(backend): Question- en AnswerRepository aangemaakt.

Ook functie toegevoegd om submissies te verwijderen.
This commit is contained in:
Gerald Schmittinger 2025-02-26 00:39:39 +01:00
parent 2837618fd5
commit 71843dad65
5 changed files with 73 additions and 2 deletions

View file

@ -15,7 +15,7 @@ export class Answer {
sequenceNumber!: number;
@Property({type: "datetime"})
timestamp!: Date;
timestamp: Date = new Date();
@Property({type: "text"})
content!: string;

View file

@ -20,7 +20,7 @@ export class Question {
author!: Student;
@Property({type: "datetime"})
timestamp!: Date;
timestamp: Date = new Date();
@Property({type: "text"})
content!: string;