update
This commit is contained in:
@ -8,12 +8,6 @@ export class TrxBank {
|
|||||||
@PrimaryGeneratedColumn("uuid")
|
@PrimaryGeneratedColumn("uuid")
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: false,
|
|
||||||
length: 64,
|
|
||||||
})
|
|
||||||
type: TrxBankType;
|
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
length: 256,
|
length: 256,
|
||||||
@ -31,12 +25,6 @@ export class TrxBank {
|
|||||||
})
|
})
|
||||||
status: Status;
|
status: Status;
|
||||||
|
|
||||||
@Column({
|
|
||||||
nullable: true,
|
|
||||||
length: 64,
|
|
||||||
})
|
|
||||||
cost: TrxCostCode;
|
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
@CreateDateColumn()
|
@CreateDateColumn()
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
|
|||||||
39
src/entity/trx_country_currencies.ts
Normal file
39
src/entity/trx_country_currencies.ts
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
import { Column, CreateDateColumn, DeleteDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
|
||||||
|
import { TrxCountry } from "./trx_countries";
|
||||||
|
import { Status } from "../types/status";
|
||||||
|
import { TrxCurrency } from "./trx_currencies";
|
||||||
|
|
||||||
|
@Entity("trx_country_currencies", { schema: "trx" })
|
||||||
|
export class TrxCountryCurrency {
|
||||||
|
@PrimaryGeneratedColumn("uuid")
|
||||||
|
id: string;
|
||||||
|
|
||||||
|
@ManyToOne(() => TrxCountry, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
country: TrxCountry;
|
||||||
|
|
||||||
|
@ManyToOne(() => TrxCurrency, { onDelete: "NO ACTION" })
|
||||||
|
@JoinColumn()
|
||||||
|
currency: TrxCurrency;
|
||||||
|
|
||||||
|
@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;
|
||||||
|
}
|
||||||
@ -7,6 +7,7 @@ export * from "../entity/trx_customer_user_activities";
|
|||||||
export * from "../entity/trx_customer_costs";
|
export * from "../entity/trx_customer_costs";
|
||||||
export * from "../entity/trx_countries";
|
export * from "../entity/trx_countries";
|
||||||
export * from "../entity/trx_currencies";
|
export * from "../entity/trx_currencies";
|
||||||
|
export * from "../entity/trx_country_currencies";
|
||||||
export * from "../entity/trx_country_bank_currencies";
|
export * from "../entity/trx_country_bank_currencies";
|
||||||
export * from "../entity/trx_currency_rates";
|
export * from "../entity/trx_currency_rates";
|
||||||
export * from "../entity/trx_banks";
|
export * from "../entity/trx_banks";
|
||||||
|
|||||||
Reference in New Issue
Block a user