update asset
This commit is contained in:
@ -1,11 +1,16 @@
|
||||
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinTable, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||
import { AssetInventory } from "./asset_inventories";
|
||||
import { AssetInventoryDepreciation } from "./asset_inventory_depreciations";
|
||||
|
||||
@Entity("asset_inventory_depreciation_logs")
|
||||
export class AssetInventoryDepreciationLog {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@ManyToOne(() => AssetInventoryDepreciation, { onDelete: 'RESTRICT' })
|
||||
@JoinTable()
|
||||
depreciation: AssetInventoryDepreciation;
|
||||
|
||||
@ManyToOne(() => AssetInventory, { onDelete: 'RESTRICT' })
|
||||
@JoinTable()
|
||||
inventory: AssetInventory;
|
||||
|
||||
Reference in New Issue
Block a user