import { Entity, Column, OneToMany } from "typeorm"; import { EntityBase } from "./base/Base"; import { Profile } from "./Profile"; import { ProfileEmployee } from "./ProfileEmployee"; @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;