hrms-api-org/src/entities/Relationship.ts
2024-06-10 10:26:34 +07:00

22 lines
503 B
TypeScript

import { Entity, Column, OneToMany } from "typeorm";
import { EntityBase } from "./base/Base";
import { Profile } from "./Profile";
import { ProfileEmployee } from "./ProfileEmployee";
@Entity("relationship")
export class Relationship extends EntityBase {
@Column({
nullable: true,
comment: "สถานภาพ",
length: 255,
default: null,
})
name: string;
}
export class CreateRelationship {
name: string;
}
export type UpdateRelationship = Partial<CreateRelationship>;