running now
This commit is contained in:
parent
85cd083750
commit
c17bb05f0a
25 changed files with 156 additions and 114 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue