migrate
This commit is contained in:
parent
1a39c0bfb1
commit
53e19272d8
5 changed files with 339 additions and 0 deletions
88
src/entities/TenureLevelEmployee.ts
Normal file
88
src/entities/TenureLevelEmployee.ts
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
import {
|
||||
Entity,
|
||||
Column,
|
||||
OneToMany,
|
||||
JoinColumn,
|
||||
ManyToOne,
|
||||
Double,
|
||||
ManyToMany,
|
||||
JoinTable,
|
||||
} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
|
||||
@Entity("tenureLevelEmployee")
|
||||
export class TenureLevelEmployee extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง profileEmployee",
|
||||
default: null,
|
||||
})
|
||||
profileEmployeeId: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ระดับซี",
|
||||
default: null,
|
||||
length: 255,
|
||||
})
|
||||
positionCee: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนวัน",
|
||||
default: null,
|
||||
})
|
||||
days_diff: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนปีดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Years: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนเดือนดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Months: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนวันดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Days: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อประเภทตำแหน่ง",
|
||||
default: null,
|
||||
length: 255,
|
||||
})
|
||||
positionType: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อระดับตำแหน่ง",
|
||||
default: null,
|
||||
length: 255,
|
||||
})
|
||||
positionLevel: string;
|
||||
}
|
||||
|
||||
export class CreateTenureLevelOfficer {
|
||||
profileEmployeeId: string;
|
||||
positionCee: string | null;
|
||||
days_diff: number | null;
|
||||
Years: number | null;
|
||||
Months: number | null;
|
||||
Days: number | null;
|
||||
positionType: string | null;
|
||||
positionLevel: string | null;
|
||||
}
|
||||
|
||||
|
||||
88
src/entities/TenureLevelOfficer.ts
Normal file
88
src/entities/TenureLevelOfficer.ts
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
import {
|
||||
Entity,
|
||||
Column,
|
||||
OneToMany,
|
||||
JoinColumn,
|
||||
ManyToOne,
|
||||
Double,
|
||||
ManyToMany,
|
||||
JoinTable,
|
||||
} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
|
||||
@Entity("tenureLevelOfficer")
|
||||
export class TenureLevelOfficer extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง Profile",
|
||||
default: null,
|
||||
})
|
||||
profileId: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ระดับซี",
|
||||
default: null,
|
||||
length: 255,
|
||||
})
|
||||
positionCee: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนวัน",
|
||||
default: null,
|
||||
})
|
||||
days_diff: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนปีดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Years: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนเดือนดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Months: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนวันดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Days: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อประเภทตำแหน่ง",
|
||||
default: null,
|
||||
length: 255,
|
||||
})
|
||||
positionType: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อระดับตำแหน่ง",
|
||||
default: null,
|
||||
length: 255,
|
||||
})
|
||||
positionLevel: string;
|
||||
}
|
||||
|
||||
export class CreateTenureLevelOfficer {
|
||||
profileId: string;
|
||||
positionCee: string | null;
|
||||
days_diff: number | null;
|
||||
Years: number | null;
|
||||
Months: number | null;
|
||||
Days: number | null;
|
||||
positionType: string | null;
|
||||
positionLevel: string | null;
|
||||
}
|
||||
|
||||
|
||||
71
src/entities/TenurePositionEmployee.ts
Normal file
71
src/entities/TenurePositionEmployee.ts
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
import {
|
||||
Entity,
|
||||
Column,
|
||||
OneToMany,
|
||||
JoinColumn,
|
||||
ManyToOne,
|
||||
Double,
|
||||
ManyToMany,
|
||||
JoinTable,
|
||||
} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
|
||||
@Entity("tenurePositionEmployee")
|
||||
export class TenurePositionEmployee extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง ProfileEmployee",
|
||||
default: null,
|
||||
})
|
||||
profileEmployeeId: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อตำแหน่ง",
|
||||
default: null,
|
||||
length: 255,
|
||||
})
|
||||
positionName: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนวัน",
|
||||
default: null,
|
||||
})
|
||||
days_diff: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนปีดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Years: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนเดือนดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Months: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนวันดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Days: number;
|
||||
|
||||
}
|
||||
|
||||
export class CreateTenurePositionEmployee {
|
||||
profileEmployeeId: string;
|
||||
positionName: string | null;
|
||||
days_diff: number | null;
|
||||
Years: number | null;
|
||||
Months: number | null;
|
||||
Days: number | null;
|
||||
}
|
||||
|
||||
|
||||
71
src/entities/TenurePositionOfficer.ts
Normal file
71
src/entities/TenurePositionOfficer.ts
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
import {
|
||||
Entity,
|
||||
Column,
|
||||
OneToMany,
|
||||
JoinColumn,
|
||||
ManyToOne,
|
||||
Double,
|
||||
ManyToMany,
|
||||
JoinTable,
|
||||
} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
|
||||
@Entity("tenurePositionOfficer")
|
||||
export class TenurePositionOfficer extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง Profile",
|
||||
default: null,
|
||||
})
|
||||
profileId: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อตำแหน่ง",
|
||||
default: null,
|
||||
length: 255,
|
||||
})
|
||||
positionName: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนวัน",
|
||||
default: null,
|
||||
})
|
||||
days_diff: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนปีดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Years: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนเดือนดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Months: number;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "จำนวนวันดำรงตำแหน่งงปัจจุบัน",
|
||||
default: null,
|
||||
})
|
||||
Days: number;
|
||||
|
||||
}
|
||||
|
||||
export class CreateTenurePositionOfficer {
|
||||
profileId: string;
|
||||
positionName: string | null;
|
||||
days_diff: number | null;
|
||||
Years: number | null;
|
||||
Months: number | null;
|
||||
Days: number | null;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue