From 10c452522c55ea39c63eaad4073d6de757879562 Mon Sep 17 00:00:00 2001 From: avicenan Date: Mon, 4 May 2026 13:55:40 +0700 Subject: [PATCH] feat(surgery-type): add new entity master data of surgery type --- src/entity/surgery_type.ts | 14 ++++++++++++++ src/schema/public.ts | 1 + 2 files changed, 15 insertions(+) create mode 100644 src/entity/surgery_type.ts diff --git a/src/entity/surgery_type.ts b/src/entity/surgery_type.ts new file mode 100644 index 0000000..a26687b --- /dev/null +++ b/src/entity/surgery_type.ts @@ -0,0 +1,14 @@ +import { Entity, PrimaryGeneratedColumn, Column } from "typeorm"; + +@Entity("surgery_types") +export class SurgeryType { + @PrimaryGeneratedColumn("uuid") + id: string; + + @Column({ + nullable: false, + type: "text", + unique: true, + }) + name: string; +} diff --git a/src/schema/public.ts b/src/schema/public.ts index fe879d1..3c3247a 100644 --- a/src/schema/public.ts +++ b/src/schema/public.ts @@ -13,6 +13,7 @@ export * from "../entity/currencies"; export * from "../entity/inpatient_rooms"; export * from "../entity/inpatient_room_beds"; export * from "../entity/surgery_room"; +export * from "../entity/surgery_type"; export * from "../entity/nationality"; export * from "../entity/diagnosis"; export * from "../entity/diagnostic_procedure";