chore(backend): Setup MikroORM
Simpele configuratie, geen integratie Succesvol commando's uitvoeren werkt
This commit is contained in:
		
							parent
							
								
									6d73120975
								
							
						
					
					
						commit
						2f280d3fb2
					
				
					 8 changed files with 1341 additions and 191 deletions
				
			
		
							
								
								
									
										13
									
								
								backend/src/entities/user.entity.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								backend/src/entities/user.entity.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| import { Entity, OneToOne, PrimaryKey, Property } from '@mikro-orm/core' | ||||
| 
 | ||||
| @Entity() | ||||
| export class User { | ||||
|   @PrimaryKey({ type: 'number' }) | ||||
|   id!: number; | ||||
| 
 | ||||
|   @Property() | ||||
|   firstName: string = ''; | ||||
| 
 | ||||
|   @Property() | ||||
|   lastName: string = ''; | ||||
| } | ||||
		Reference in a new issue