feat(backend): Groep aan primaire sleutel van submissions en questions toegevoegd.
This commit is contained in:
parent
dbc1da741c
commit
12c1505ba7
3 changed files with 13 additions and 6 deletions
|
@ -21,6 +21,12 @@ export class Submission {
|
|||
@PrimaryKey({ type: 'integer', autoincrement: true })
|
||||
submissionNumber?: number;
|
||||
|
||||
@ManyToOne({
|
||||
entity: () => Group,
|
||||
primary: true
|
||||
})
|
||||
onBehalfOf: Group;
|
||||
|
||||
@ManyToOne({
|
||||
entity: () => Student,
|
||||
})
|
||||
|
@ -29,11 +35,7 @@ export class Submission {
|
|||
@Property({ type: 'datetime' })
|
||||
submissionTime!: Date;
|
||||
|
||||
@ManyToOne({
|
||||
entity: () => Group,
|
||||
nullable: true,
|
||||
})
|
||||
onBehalfOf?: Group;
|
||||
|
||||
|
||||
@Property({ type: 'json' })
|
||||
content!: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue