remove user relation

This commit is contained in:
fadlydev
2025-01-17 15:13:52 +07:00
parent 9cbfda0988
commit 508f837de9

View File

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