This repository has been archived on 2025-09-22. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2025SELab2-project-Dwengo/backend/src/entities/users/user.entity.ts
Gerald Schmittinger 48c8ce7c57 fix(backend): Formatting + .env.development.example
npm run format uitgevoerd, .env.development.example toegevoegd.
2025-02-26 22:03:53 +01:00

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