diff --git a/src/entity/asset_depreciation.ts b/src/entity/asset_depreciation.ts index 16f7c76..97863d2 100644 --- a/src/entity/asset_depreciation.ts +++ b/src/entity/asset_depreciation.ts @@ -9,8 +9,6 @@ import { ManyToOne, JoinColumn, } from 'typeorm'; - -import { User } from './users'; import { FixedAssetClassification } from './fixed_assets_classification'; @Entity('asset_depreciation') @@ -48,10 +46,6 @@ export class AssetDepreciation { }) remarks: string; - @ManyToOne(() => User, (user) => user.id, { nullable: true }) - @JoinColumn({ name: 'created_by' }) - createdBy: User; - @Index() @Column({ nullable: true, @@ -59,17 +53,12 @@ export class AssetDepreciation { }) created_by: string; - @ManyToOne(() => User, (user) => user.id, { nullable: true }) - @JoinColumn({ name: 'updated_by' }) - updatedBy: User; - @Index() @Column({ nullable: true, type: 'uuid', }) - updated_by: string; - + updated_by: string; @Column() @CreateDateColumn() created_at: Date;