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