mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-08-25 21:59:40 +00:00
refactor: remove unsed code
This commit is contained in:
@ -92,20 +92,6 @@ export class Customer extends BaseEntity {
|
||||
@OneToOne(() => Guardian, (guardian) => guardian.customer, { cascade: true })
|
||||
guardian!: Guardian;
|
||||
|
||||
@Column('uuid', { name: 'civil_id_front_id', nullable: true })
|
||||
civilIdFrontId!: string;
|
||||
|
||||
@Column('uuid', { name: 'civil_id_back_id', nullable: true })
|
||||
civilIdBackId!: string;
|
||||
|
||||
@OneToOne(() => Document, (document) => document.customerCivilIdFront, { nullable: true })
|
||||
@JoinColumn({ name: 'civil_id_front_id' })
|
||||
civilIdFront!: Document;
|
||||
|
||||
@OneToOne(() => Document, (document) => document.customerCivilIdBack, { nullable: true })
|
||||
@JoinColumn({ name: 'civil_id_back_id' })
|
||||
civilIdBack!: Document;
|
||||
|
||||
@CreateDateColumn({ type: 'timestamp with time zone', default: () => 'CURRENT_TIMESTAMP', name: 'created_at' })
|
||||
createdAt!: Date;
|
||||
|
||||
|
Reference in New Issue
Block a user