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

20 lines
401 B
TypeScript
Raw Normal View History

2024-10-18 11:52:35 +07:00
import { Entity, Column } from "typeorm";
2024-02-02 10:47:19 +07:00
import { EntityBase } from "./base/Base";
@Entity("relationship")
export class Relationship extends EntityBase {
@Column({
nullable: true,
comment: "สถานภาพ",
length: 255,
default: null,
})
name: string;
}
export class CreateRelationship {
name: string;
2024-02-02 10:47:19 +07:00
}
export type UpdateRelationship = Partial<CreateRelationship>;