เพิ่ม commandcode
This commit is contained in:
parent
2b0865ea9f
commit
76a2213cd8
3 changed files with 231 additions and 36 deletions
30
src/entities/CommandCode.ts
Normal file
30
src/entities/CommandCode.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { Entity, Column } from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("commandCode")
|
||||
export class CommandCode extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "คำสั่ง",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "HRMS Id",
|
||||
default: null,
|
||||
})
|
||||
code: number;
|
||||
}
|
||||
|
||||
export class CreateCommandCode {
|
||||
@Column()
|
||||
name: string;
|
||||
|
||||
@Column()
|
||||
code: number;
|
||||
}
|
||||
|
||||
export type UpdateCommandCode = Partial<CreateCommandCode>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue