7table and PosExecutive (elementary)
This commit is contained in:
parent
e90e3a27c6
commit
04874676f8
10 changed files with 433 additions and 80 deletions
20
src/entities/BloodGroup.ts
Normal file
20
src/entities/BloodGroup.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { Entity, Column} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("bloodGroup")
|
||||
export class BloodGroup extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "กรุ๊ปเลือด",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
name: string;
|
||||
}
|
||||
|
||||
export class CreateBloodGroup {
|
||||
@Column()
|
||||
bloodGroup: string;
|
||||
}
|
||||
|
||||
export type UpdateBloodGroup = Partial<CreateBloodGroup>;
|
||||
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>;
|
||||
20
src/entities/Gender.ts
Normal file
20
src/entities/Gender.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { Entity, Column} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("gender")
|
||||
export class Gender extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "เพศ",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
name: string;
|
||||
}
|
||||
|
||||
export class CreateGender {
|
||||
@Column()
|
||||
gender: string;
|
||||
}
|
||||
|
||||
export type UpdateGender = Partial<CreateGender>;
|
||||
20
src/entities/Prefixe.ts
Normal file
20
src/entities/Prefixe.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { Entity, Column} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("prefixe")
|
||||
export class Prefixe extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "คำนำหน้าชื่อ",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
name: string;
|
||||
}
|
||||
|
||||
export class CreatePrefixe {
|
||||
@Column()
|
||||
prefixe: string;
|
||||
}
|
||||
|
||||
export type UpdatePrefixe = Partial<CreatePrefixe>;
|
||||
20
src/entities/Rank.ts
Normal file
20
src/entities/Rank.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { Entity, Column} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("rank")
|
||||
export class Rank extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ยศ",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
name: string;
|
||||
}
|
||||
|
||||
export class CreateRank {
|
||||
@Column()
|
||||
rank: string;
|
||||
}
|
||||
|
||||
export type UpdateRank = Partial<CreateRank>;
|
||||
20
src/entities/Relationship.ts
Normal file
20
src/entities/Relationship.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { Entity, Column} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("relationship")
|
||||
export class Relationship extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "สถานภาพ",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
name: string;
|
||||
}
|
||||
|
||||
export class CreateRelationship {
|
||||
@Column()
|
||||
relationship: string;
|
||||
}
|
||||
|
||||
export type UpdateRelationship = Partial<CreateRelationship>;
|
||||
20
src/entities/Religion.ts
Normal file
20
src/entities/Religion.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import { Entity, Column} from "typeorm";
|
||||
import { EntityBase } from "./base/Base";
|
||||
|
||||
@Entity("religion")
|
||||
export class Religion extends EntityBase {
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ศาสนา",
|
||||
length: 255,
|
||||
default: null,
|
||||
})
|
||||
name: string;
|
||||
}
|
||||
|
||||
export class CreateReligion {
|
||||
@Column()
|
||||
religion: string;
|
||||
}
|
||||
|
||||
export type UpdateReligion = Partial<CreateReligion>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue