hrms-api-org/src/entities/Religion.ts
2024-10-18 11:52:35 +07:00

20 lines
387 B
TypeScript

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()
name: string;
}
export type UpdateReligion = Partial<CreateReligion>;