running now

This commit is contained in:
Anika Raemer 2025-09-22 20:17:46 +02:00
parent 85cd083750
commit c17bb05f0a
25 changed files with 156 additions and 114 deletions

View file

@ -1,24 +1,23 @@
import { Entity, Column } from "typeorm";
import { AbstractEntity } from "./AbstractEntity";
import { AbstractEntity } from "./AbstractEntity.js";
@Entity({ name: "user" })
export class UserEntity extends AbstractEntity {
@Column({ nullable: false })
userName: string;
userName!: string;
@Column({ nullable: false })
email: string;
email!: string;
@Column({ nullable: false })
password: string;
password!: string;
@Column({ nullable: true })
firstName: string;
firstName?: string;
@Column({ nullable: true })
lastName: string;
lastName?: string;
@Column({ default: "user" })
role: string;
role!: string;
}