update : add signature and picture profile
This commit is contained in:
@ -19,7 +19,7 @@ export class User {
|
||||
|
||||
@ManyToOne(() => HrmsEmployee, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
employee: HrmsEmployee;
|
||||
employee: HrmsEmployee | null;
|
||||
|
||||
@Column({
|
||||
nullable: false,
|
||||
@ -42,6 +42,20 @@ export class User {
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
unique: false,
|
||||
type: "text",
|
||||
})
|
||||
signature: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
unique: false,
|
||||
type: "text",
|
||||
})
|
||||
profile_picture: string;
|
||||
|
||||
@ManyToMany(() => UserRole, { onDelete: "CASCADE" })
|
||||
@JoinTable()
|
||||
roles: UserRole[];
|
||||
|
||||
Reference in New Issue
Block a user