This commit is contained in:
fro1991
2025-10-26 02:39:47 +07:00
parent 20e0d5bb30
commit f66f53f10d

View File

@ -2,6 +2,7 @@ import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToO
import { TrxCountry } from "./trx_countries"; import { TrxCountry } from "./trx_countries";
import { TrxCurrency } from "./trx_currencies"; import { TrxCurrency } from "./trx_currencies";
import { TrxBank } from "./trx_banks"; import { TrxBank } from "./trx_banks";
import { TrxCostCode } from "../types/trx";
@Entity("trx_bank_currencies", { schema: "trx" }) @Entity("trx_bank_currencies", { schema: "trx" })
export class TrxBankCurrency { export class TrxBankCurrency {
@ -16,6 +17,12 @@ export class TrxBankCurrency {
@JoinColumn() @JoinColumn()
currency: TrxCurrency; currency: TrxCurrency;
@Column({
nullable: true,
length: 32,
})
cost_code: TrxCostCode;
@Column() @Column()
@CreateDateColumn() @CreateDateColumn()
created_at: Date; created_at: Date;