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 })
|
@ManyToOne(() => HrmsEmployee, { onDelete: "NO ACTION", nullable: true })
|
||||||
@JoinColumn()
|
@JoinColumn()
|
||||||
employee: HrmsEmployee;
|
employee: HrmsEmployee | null;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
@ -42,6 +42,20 @@ export class User {
|
|||||||
})
|
})
|
||||||
name: string;
|
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" })
|
@ManyToMany(() => UserRole, { onDelete: "CASCADE" })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
roles: UserRole[];
|
roles: UserRole[];
|
||||||
|
|||||||
Reference in New Issue
Block a user