From 37b6155e3301d5379a0665e693e31dd3c3d2c3d0 Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Tue, 28 Apr 2026 13:51:46 +0700 Subject: [PATCH] update: foster care history done --- src/entity/foster_care_history.ts | 45 +++++++++++++++++++++++++++++++ src/schema/public.ts | 1 + 2 files changed, 46 insertions(+) create mode 100644 src/entity/foster_care_history.ts diff --git a/src/entity/foster_care_history.ts b/src/entity/foster_care_history.ts new file mode 100644 index 0000000..18e0f66 --- /dev/null +++ b/src/entity/foster_care_history.ts @@ -0,0 +1,45 @@ +import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm"; + +import { Status } from "../types/status"; + +@Entity("foster_care_history") +export class FosterCareHistory { + @PrimaryGeneratedColumn("uuid") + id: string; + + @Column({ + nullable: false, + length: 256, + }) + diagnosis: string; + + @Column({ + nullable: false, + length: 128, + }) + code: string; + + @Column({ + nullable: false, + length: 64, + }) + status: Status; + + @CreateDateColumn() + created_at: Date; + + @Column({ nullable: true, length: 256 }) + created_by: string; + + @UpdateDateColumn({ nullable: true }) + updated_at: Date; + + @Column({ nullable: true, length: 256 }) + updated_by: string; + + @DeleteDateColumn({ nullable: true }) + deleted_at: Date; + + @Column({ nullable: true, length: 256 }) + deleted_by: string; +} diff --git a/src/schema/public.ts b/src/schema/public.ts index 02380ea..603ff7d 100644 --- a/src/schema/public.ts +++ b/src/schema/public.ts @@ -49,6 +49,7 @@ export * from "../entity/city"; export * from "../entity/subdistrict"; export * from "../entity/ward"; export * from "../entity/responsible_party_consent"; +export * from "../entity/foster_care_history"; export * from "../types/action"; export * from "../types/error";