update : add signature and picture profile

This commit is contained in:
wayanrivan
2026-04-27 09:47:22 +07:00
parent 0cf730ff31
commit 11b5e647db

View File

@ -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[];