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 { ProcurementCategory } from "./procurement_category";
|
||||
|
||||
@Entity("procurement_project_yearly", { schema: "procurement" })
|
||||
export class ProcurementProjectYearly {
|
||||
@ -28,8 +29,9 @@ export class ProcurementProjectYearly {
|
||||
@Column({ type: "int", nullable: true })
|
||||
quantity: number; // Kuantidade
|
||||
|
||||
@Column({ type: "varchar", length: 50, nullable: true })
|
||||
budget_category: string; // Categoria Orsamentu (ABC, DC, etc)
|
||||
@ManyToOne(() => ProcurementCategory, { onDelete: "NO ACTION", nullable: true })
|
||||
@JoinColumn()
|
||||
budget_category: ProcurementCategory; // Categoria Orsamentu
|
||||
|
||||
@Column({ type: "varchar", length: 50, nullable: true })
|
||||
item_code: string; // Item Code (livro oramentu)
|
||||
|
||||
Reference in New Issue
Block a user