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:
Gerald Schmittinger 2025-02-21 00:24:10 +01:00
parent c07bb959cf
commit 62a278a6e0
8 changed files with 86 additions and 10 deletions

View file

@ -1,13 +0,0 @@
import { Entity, PrimaryKey, Property } from '@mikro-orm/core';
@Entity()
export class User {
@PrimaryKey({ type: 'number' })
id!: number;
@Property()
firstName: string = '';
@Property()
lastName: string = '';
}