7table and PosExecutive (elementary)

This commit is contained in:
AdisakKanthawilang 2024-02-02 10:47:19 +07:00
parent e90e3a27c6
commit 04874676f8
10 changed files with 433 additions and 80 deletions

20
src/entities/Gender.ts Normal file
View 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>;