Migrate add absentLateHistory
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m41s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m41s
This commit is contained in:
parent
ecb3cb1d2a
commit
ef0d6ea1b5
5 changed files with 180 additions and 4 deletions
20
src/entities/ProfileAbsentLateHistory.ts
Normal file
20
src/entities/ProfileAbsentLateHistory.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { Entity, Column } from "typeorm";
|
||||
import {
|
||||
ProfileAbsentLate,
|
||||
AbsentLateStatus,
|
||||
StampType,
|
||||
} from "./ProfileAbsentLate";
|
||||
|
||||
@Entity("profileAbsentLateHistory")
|
||||
export class ProfileAbsentLateHistory extends ProfileAbsentLate {
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง ProfileAbsentLate",
|
||||
default: null,
|
||||
})
|
||||
profileAbsentLateId: string;
|
||||
}
|
||||
|
||||
// Export enums for re-use
|
||||
export { AbsentLateStatus, StampType };
|
||||
17
src/entities/ProfileEmployeeAbsentLateHistory.ts
Normal file
17
src/entities/ProfileEmployeeAbsentLateHistory.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { Entity, Column } from "typeorm";
|
||||
import { ProfileEmployeeAbsentLate } from "./ProfileEmployeeAbsentLate";
|
||||
import { AbsentLateStatus, StampType } from "./ProfileAbsentLate";
|
||||
|
||||
@Entity("profileEmployeeAbsentLateHistory")
|
||||
export class ProfileEmployeeAbsentLateHistory extends ProfileEmployeeAbsentLate {
|
||||
@Column({
|
||||
nullable: true,
|
||||
length: 40,
|
||||
comment: "คีย์นอก(FK)ของตาราง ProfileEmployeeAbsentLate",
|
||||
default: null,
|
||||
})
|
||||
profileEmployeeAbsentLateId: string;
|
||||
}
|
||||
|
||||
// Export enums for re-use
|
||||
export { AbsentLateStatus, StampType };
|
||||
Loading…
Add table
Add a link
Reference in a new issue