remove user relation
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user