no message
This commit is contained in:
parent
8f0624d27b
commit
b089d9279a
8 changed files with 374 additions and 88 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue