fix(backend): group toch niet deel van primaire sleutel van vragen en submissions gemaakt, maar verplicht veld
This commit is contained in:
		
							parent
							
								
									b1df95da63
								
							
						
					
					
						commit
						7b79348985
					
				
					 10 changed files with 21 additions and 20 deletions
				
			
		|  | @ -22,8 +22,7 @@ export class Submission { | |||
|     submissionNumber?: number; | ||||
| 
 | ||||
|     @ManyToOne({ | ||||
|         entity: () => Group, | ||||
|         primary: true | ||||
|         entity: () => Group | ||||
|     }) | ||||
|     onBehalfOf!: Group; | ||||
| 
 | ||||
|  |  | |||
|  | @ -21,7 +21,7 @@ export class Question { | |||
|     @PrimaryKey({ type: 'integer', autoincrement: true }) | ||||
|     sequenceNumber?: number; | ||||
| 
 | ||||
|     @ManyToOne({ entity: () => Group, primary: true }) | ||||
|     @ManyToOne({ entity: () => Group }) | ||||
|     inGroup!: Group; | ||||
| 
 | ||||
|     @ManyToOne({ | ||||
|  |  | |||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger