fix and relation emp
This commit is contained in:
parent
497db161c4
commit
c441df3dc9
5 changed files with 72 additions and 4 deletions
|
|
@ -14,6 +14,10 @@ import { ProfileLeave } from "./ProfileLeave";
|
|||
import { ProfileDuty } from "./ProfileDuty";
|
||||
import { ProfileNopaid } from "./ProfileNopaid";
|
||||
import { ProfileDiscipline } from "./ProfileDiscipline";
|
||||
import { ProfileChangeName } from "./ProfileChangeName";
|
||||
import { ProfileFamilyHistory } from "./ProfileFamily";
|
||||
import { ProfileEducation } from "./ProfileEducation";
|
||||
import { ProfileAbility } from "./ProfileAbility";
|
||||
@Entity("profileEmployee")
|
||||
export class ProfileEmployee extends EntityBase {
|
||||
@Column({
|
||||
|
|
@ -232,6 +236,18 @@ export class ProfileEmployee extends EntityBase {
|
|||
@OneToMany(() => ProfileDiscipline, (v) => v.profileEmployee)
|
||||
profileDisciplines: ProfileNopaid[];
|
||||
|
||||
@OneToMany(() => ProfileChangeName, (v) => v.profileEmployee)
|
||||
profileChangeNames: ProfileChangeName[];
|
||||
|
||||
@OneToMany(() => ProfileFamilyHistory, (v) => v.profileEmployee)
|
||||
profileFamilys: ProfileFamilyHistory[];
|
||||
|
||||
@OneToMany(() => ProfileEducation, (v) => v.profileEmployee)
|
||||
profileEducations: ProfileEducation[];
|
||||
|
||||
@OneToMany(() => ProfileAbility, (v) => v.profileEmployee)
|
||||
profileAbilities: ProfileAbility[];
|
||||
|
||||
@ManyToOne(() => EmployeePosLevel, (v) => v.profiles)
|
||||
posLevel: EmployeePosLevel;
|
||||
|
||||
|
|
@ -275,6 +291,8 @@ export class CreateProfileEmployee {
|
|||
gender: string | null;
|
||||
relationship: string | null;
|
||||
bloodGroup: string | null;
|
||||
email: string | null ;
|
||||
phone: string | null;
|
||||
}
|
||||
|
||||
export type UpdateProfileEmployee = {
|
||||
|
|
@ -296,4 +314,6 @@ export type UpdateProfileEmployee = {
|
|||
gender?: string | null;
|
||||
relationship?: string | null;
|
||||
bloodGroup?: string | null;
|
||||
email: string | null;
|
||||
phone: string | null;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue