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