2025SELab2-project-Dwengo/backend/src/entities/users/user.entity.ts
Gerald Schmittinger d5101737ef feat(backend): Entities toegevoegd
Entites Class, Class Join Request, Class Invitation, Assignment, Group en entities om de Dwengo-leerinhoud te modelleren, toegevoegd.
2025-02-25 12:51:04 +01:00

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 = '';
}