no message
This commit is contained in:
parent
8f0624d27b
commit
b089d9279a
8 changed files with 374 additions and 88 deletions
|
|
@ -34,6 +34,7 @@ import { ProfileEdit } from "./ProfileEdit";
|
|||
import { ProfileDevelopment } from "./ProfileDevelopment";
|
||||
import { DevelopmentRequest } from "./DevelopmentRequest";
|
||||
import { RoleKeycloak } from "./RoleKeycloak";
|
||||
import { StateOperatorUser } from "./StateOperatorUser";
|
||||
|
||||
@Entity("profileEmployee")
|
||||
export class ProfileEmployee extends EntityBase {
|
||||
|
|
@ -695,6 +696,9 @@ export class ProfileEmployee extends EntityBase {
|
|||
@OneToMany(() => ProfileFamilyCouple, (v) => v.profile)
|
||||
profileFamilyCouple: ProfileFamilyCouple[];
|
||||
|
||||
@OneToMany(() => StateOperatorUser, (v) => v.profile)
|
||||
stateOperatorUsers: StateOperatorUser[];
|
||||
|
||||
//ที่อยู่
|
||||
@Column({
|
||||
nullable: true,
|
||||
|
|
|
|||
|
|
@ -13,6 +13,14 @@ export class RoleKeycloak extends EntityBase {
|
|||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "คำอธิบาย",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
description: string;
|
||||
|
||||
@ManyToMany(() => Profile, (profile) => profile.roleKeycloaks)
|
||||
profiles: Profile[];
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { Entity, Column, ManyToOne, JoinColumn } from "typeorm";
|
|||
import { EntityBase } from "./base/Base";
|
||||
import { Workflow } from "./Workflow";
|
||||
import { Profile } from "./Profile";
|
||||
import { ProfileEmployee } from "./ProfileEmployee";
|
||||
|
||||
@Entity("stateOperatorUser")
|
||||
export class StateOperatorUser extends EntityBase {
|
||||
|
|
@ -13,6 +14,14 @@ export class StateOperatorUser extends EntityBase {
|
|||
})
|
||||
operator: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ผู้ใช้งาน",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
profileType: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ลำดับ",
|
||||
|
|
@ -44,4 +53,17 @@ export class StateOperatorUser extends EntityBase {
|
|||
@ManyToOne(() => Profile, (profile) => profile.stateOperatorUsers)
|
||||
@JoinColumn({ name: "profileId" })
|
||||
profile: Profile;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง profileEmployee",
|
||||
type: "uuid",
|
||||
default: null,
|
||||
})
|
||||
profileEmployeeId: string;
|
||||
|
||||
@ManyToOne(() => ProfileEmployee, (profileEmployee) => profileEmployee.stateOperatorUsers)
|
||||
@JoinColumn({ name: "profileEmployeeId" })
|
||||
profileEmployee: ProfileEmployee;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,14 @@ export class Workflow extends EntityBase {
|
|||
})
|
||||
refId: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ผู้ใช้งาน",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
profileType: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อ flow",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue