
Entites Class, Class Join Request, Class Invitation, Assignment, Group en entities om de Dwengo-leerinhoud te modelleren, toegevoegd.
13 lines
268 B
TypeScript
13 lines
268 B
TypeScript
import { Entity, PrimaryKey, Property } from '@mikro-orm/core';
|
|
|
|
@Entity({abstract: true})
|
|
export abstract class User {
|
|
@PrimaryKey({type: "string"})
|
|
username!: string;
|
|
|
|
@Property()
|
|
firstName: string = '';
|
|
|
|
@Property()
|
|
lastName: string = '';
|
|
}
|