7table and PosExecutive (elementary)
This commit is contained in:
parent
e90e3a27c6
commit
04874676f8
10 changed files with 433 additions and 80 deletions
30
src/entities/EducationLevel.ts
Normal file
30
src/entities/EducationLevel.ts
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { Entity, Column} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("educationLevel")
|
||||
export class EducationLevel extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ระดับการศึกษา",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
name: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ระดับที่",
|
||||
default: null,
|
||||
})
|
||||
rank: number;
|
||||
}
|
||||
|
||||
export class CreateEducationLevel {
|
||||
@Column()
|
||||
educationLevel: string;
|
||||
|
||||
@Column()
|
||||
rank: number;
|
||||
}
|
||||
|
||||
export type UpdateEducationLevel = Partial<CreateEducationLevel>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue