hrms-api-org/src/entities/Religion.ts

21 lines
390 B
TypeScript
Raw Normal View History

2024-02-02 10:47:19 +07:00
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>;