From c0b627fd37c10c32a1e1c9034d09feee0c83f64d Mon Sep 17 00:00:00 2001 From: "fazri.is" Date: Mon, 8 Dec 2025 15:07:04 +0700 Subject: [PATCH] update --- src/entity/trx_maintenance_customers.ts | 58 ------------------------- src/schema/trx.ts | 1 - 2 files changed, 59 deletions(-) delete mode 100644 src/entity/trx_maintenance_customers.ts diff --git a/src/entity/trx_maintenance_customers.ts b/src/entity/trx_maintenance_customers.ts deleted file mode 100644 index 8fe5f7e..0000000 --- a/src/entity/trx_maintenance_customers.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, JoinTable, ManyToOne, OneToMany, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm"; -import { TrxMaintenancePosition, TrxMaintenanceStatus } from "../types/trx"; -import { TrxMaintenance } from "./trx_maintenances"; -import { Status } from "../types/status"; -import { TrxMaintenanceGroup } from "./trx_maintenance_groups"; -import { TrxCustomer } from "./trx_customers"; - -@Entity("trx_maintenance_customers", { schema: "trx" }) -export class TrxMaintenanceCustomer { - @PrimaryGeneratedColumn("uuid") - id: string; - - @ManyToOne(() => TrxMaintenance, { onDelete: "NO ACTION" }) - @JoinTable() - maintenance: TrxMaintenance; - - @ManyToOne(() => TrxCustomer, { onDelete: "NO ACTION" }) - @JoinTable() - customer: TrxCustomer; - - @Column({ - nullable: false, - length: 256, - }) - cif_number: string; - - @Column({ - nullable: false, - length: 256, - }) - name: string; - - @Column({ - length: 256, - }) - status: Status; - - @Column() - @CreateDateColumn() - created_at: Date; - - @Column({ nullable: true, length: 256 }) - created_by: string; - - @Column({ nullable: true }) - @UpdateDateColumn() - updated_at: Date; - - @Column({ nullable: true, length: 256 }) - updated_by: string; - - @Column({ nullable: true }) - @DeleteDateColumn() - deleted_at: Date; - - @Column({ nullable: true, length: 256 }) - deleted_by: string; -} diff --git a/src/schema/trx.ts b/src/schema/trx.ts index cdeacf6..a1677de 100644 --- a/src/schema/trx.ts +++ b/src/schema/trx.ts @@ -26,5 +26,4 @@ export * from "../entity/trx_maintenances"; export * from "../entity/trx_maintenance_details"; export * from "../entity/trx_maintenance_slas"; export * from "../entity/trx_maintenance_groups"; -export * from "../entity/trx_maintenance_customers"; export * from "../types/trx";