finance update purchase request
This commit is contained in:
63
src/entity/finance/finance_purchase_request_items.ts
Normal file
63
src/entity/finance/finance_purchase_request_items.ts
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { FinancePurchaseRequest } from "./finance_purchase_requests";
|
||||||
|
|
||||||
|
@Entity("finance_purchase_request_items", { schema: "finances" })
|
||||||
|
export class FinancePurchaseRequestItem {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => FinancePurchaseRequest, { onDelete: "RESTRICT", nullable: true })
|
||||||
|
@JoinColumn()
|
||||||
|
purchase_request: FinancePurchaseRequest;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 4096,
|
||||||
|
})
|
||||||
|
item: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
type: "float8",
|
||||||
|
nullable: false,
|
||||||
|
})
|
||||||
|
quantity: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 128,
|
||||||
|
})
|
||||||
|
unit: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "float8",
|
||||||
|
})
|
||||||
|
price: number;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
type: "float8",
|
||||||
|
})
|
||||||
|
total: number;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
@CreateDateColumn()
|
||||||
|
created_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
created_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@UpdateDateColumn()
|
||||||
|
updated_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
updated_by: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true })
|
||||||
|
@DeleteDateColumn()
|
||||||
|
deleted_at: Date;
|
||||||
|
|
||||||
|
@Column({ nullable: true, length: 256 })
|
||||||
|
deleted_by: string;
|
||||||
|
}
|
||||||
@ -10,3 +10,4 @@ export * from "../entity/finance/finance_localizacao";
|
|||||||
export * from "../entity/finance/finance_plans";
|
export * from "../entity/finance/finance_plans";
|
||||||
export * from "../entity/finance/finance_plan_items";
|
export * from "../entity/finance/finance_plan_items";
|
||||||
export * from "../entity/finance/finance_purchase_requests";
|
export * from "../entity/finance/finance_purchase_requests";
|
||||||
|
export * from "../entity/finance/finance_purchase_request_items";
|
||||||
|
|||||||
Reference in New Issue
Block a user