feat(backend): Databank initialiseren
Verbinding met databank aangemaakt, eerste entities toegevoegd, centrale API aangemaakt om omgevingsvariabelen voor onze app op te vragen.
This commit is contained in:
parent
c07bb959cf
commit
62a278a6e0
8 changed files with 86 additions and 10 deletions
13
backend/src/entities/users/user.entity.ts
Normal file
13
backend/src/entities/users/user.entity.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { Entity, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
|
||||
@Entity({abstract: true})
|
||||
export class User {
|
||||
@PrimaryKey({type: "string"})
|
||||
username!: string;
|
||||
|
||||
@Property()
|
||||
firstName: string = '';
|
||||
|
||||
@Property()
|
||||
lastName: string = '';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue