From b43592e88a1c2fd4e71533e53adbb468f6148738 Mon Sep 17 00:00:00 2001 From: wayanrivan Date: Mon, 30 Mar 2026 11:28:50 +0700 Subject: [PATCH] update : registration fee done --- src/entity/registrationfee.ts | 39 +++++++++++++++++++++++++++++++++++ src/schema/public.ts | 1 + 2 files changed, 40 insertions(+) create mode 100644 src/entity/registrationfee.ts diff --git a/src/entity/registrationfee.ts b/src/entity/registrationfee.ts new file mode 100644 index 0000000..7970ac1 --- /dev/null +++ b/src/entity/registrationfee.ts @@ -0,0 +1,39 @@ +import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm"; + +@Entity("registration_fee") +export class RegistrationFee { + @PrimaryGeneratedColumn("uuid") + id: string; + + @Column({ + type: 'text', + nullable: true, + array: true, + }) + service: string[]; + + @Column({ + nullable: false, + unique: false, + length: 128, + }) + type: string; + + @CreateDateColumn() + created_at: Date; + + @Column({ nullable: true, length: 256 }) + created_by: string; + + @UpdateDateColumn() + updated_at: Date; + + @Column({ nullable: true, length: 256 }) + updated_by: string; + + @DeleteDateColumn() + deleted_at: Date; + + @Column({ nullable: true, length: 256 }) + deleted_by: string; +} diff --git a/src/schema/public.ts b/src/schema/public.ts index 5c53615..fdb75c1 100644 --- a/src/schema/public.ts +++ b/src/schema/public.ts @@ -40,6 +40,7 @@ export * from "../entity/room_to_pharmacy" export * from "../entity/faretype" export * from "../entity/card_type" export * from "../entity/payment_method" +export * from "../entity/registrationfee" export * from "../types/action"; export * from "../types/error";