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

23 lines
488 B
TypeScript
Raw Normal View History

2024-03-21 16:29:51 +07:00
import { Entity, Column, OneToMany } from "typeorm";
2024-02-02 10:47:19 +07:00
import { EntityBase } from "./base/Base";
2024-03-21 16:29:51 +07:00
import { Profile } from "./Profile";
import { ProfileEmployee } from "./ProfileEmployee";
2024-02-02 10:47:19 +07:00
@Entity("religion")
export class Religion extends EntityBase {
@Column({
nullable: true,
comment: "ศาสนา",
length: 255,
default: null,
})
name: string;
}
export class CreateReligion {
@Column()
name: string;
2024-02-02 10:47:19 +07:00
}
export type UpdateReligion = Partial<CreateReligion>;