upd
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn } from "typeorm";
|
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, DeleteDateColumn, ManyToOne, JoinColumn } from "typeorm";
|
||||||
import { ProcurementMethod, ProcurementPreparationStatus, ProcurementStatusType } from "../../types/procurement";
|
import { ProcurementMethod, ProcurementPreparationStatus, ProcurementStatusType } from "../../types/procurement";
|
||||||
|
import { ProcurementCategory } from "./procurement_category";
|
||||||
|
|
||||||
@Entity("procurement_project_yearly", { schema: "procurement" })
|
@Entity("procurement_project_yearly", { schema: "procurement" })
|
||||||
export class ProcurementProjectYearly {
|
export class ProcurementProjectYearly {
|
||||||
@ -28,8 +29,9 @@ export class ProcurementProjectYearly {
|
|||||||
@Column({ type: "int", nullable: true })
|
@Column({ type: "int", nullable: true })
|
||||||
quantity: number; // Kuantidade
|
quantity: number; // Kuantidade
|
||||||
|
|
||||||
@Column({ type: "varchar", length: 50, nullable: true })
|
@ManyToOne(() => ProcurementCategory, { onDelete: "NO ACTION", nullable: true })
|
||||||
budget_category: string; // Categoria Orsamentu (ABC, DC, etc)
|
@JoinColumn()
|
||||||
|
budget_category: ProcurementCategory; // Categoria Orsamentu
|
||||||
|
|
||||||
@Column({ type: "varchar", length: 50, nullable: true })
|
@Column({ type: "varchar", length: 50, nullable: true })
|
||||||
item_code: string; // Item Code (livro oramentu)
|
item_code: string; // Item Code (livro oramentu)
|
||||||
|
|||||||
Reference in New Issue
Block a user