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";